|
1 | | -# Advent-of-Code-2022-Python |
| 1 | +# Advent-of-Code-2022-Python |
| 2 | + |
| 3 | +Python solutions to the `Advent of Code 2022` problems. Check out https://adventofcode.com |
| 4 | + |
| 5 | +Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other. |
| 6 | + |
| 7 | +## Dependencies |
| 8 | +> Python |
| 9 | + |
| 10 | +If you are managing Python packages (libraries) with pip, you can use the configuration file `requirements.txt` to install the specified packages with the specified version. |
| 11 | + |
| 12 | +### Install packages with pip: |
| 13 | +> pip install -r requirements.txt |
| 14 | + |
| 15 | +### Export current environment configuration file: |
| 16 | +> pip freeze > requirements.txt |
| 17 | + |
| 18 | +More information: https://note.nkmk.me/en/python-pip-install-requirements/ |
| 19 | + |
| 20 | +### Generate requirements.txt file for any project based on imports |
| 21 | + |
| 22 | +pipreqs automatically generates requirements.txt for any python project. The output file contains all the imports libraries with versions you are using in the installed python or virtual environment. |
| 23 | + |
| 24 | +**Installation** |
| 25 | +> pip install pipreqs |
| 26 | + |
| 27 | +**Usage** |
| 28 | +> pipreqs /home/project/location |
| 29 | + |
| 30 | +More information: https://github.com/bndr/pipreqs |
0 commit comments