- requirements.txt
-
A
requirements.txt
file can be created manually and add the names of the modules we would like to install. -
To install the python packages from the
requirements.txt
, use thepip
package management and navigate to the root directory of the program and type the following command in a terminal:pip3 install -r requirements.txt
-
The
requirements.txt
file can also be generated withpip3 freeze > requirements.txt
. This command outputs a list of all installed Python modules with their versions. NumPy library is required for the assignment and this command shows that NumPy was previously installed.
For more information about the requirements.txt
file: https://learnpython.com/blog/python-requirements-file/
- how to run assignment_1.py file from the command line
- cd to the file location: from the root directory
cd scr/main
- In the command line type
assignment_1.py
to run the program