The root directory for Python experiments.
To start working with the python code run:
-
Open command prompt and make sure you are in
python
directory.Your current location should be
sk-experiments/python
. -
Check your python version
python --version
Your python version should be the Python 3.10.4. That is the version I used when I created requirements.txt.
I am not sure should how do the python versions work and should they match.
-
Instantiate the virtual environment:
python -m venv env
Check do you have
env
directory. If you do, proceed. Otherwise you did something wrong. -
Run the python from the virtual environment
env\Scripts\activate.bat
-
Install the packages from the requirements.txt.
python -m pip install -r requirements.txt
-
Run the code
python main.py
-
Make sure you are in virtual environment.
You should see (env) C:\Users<username>....
-
Activate the virtual environment.
-
Run the format command.
black .
-
If the format command doesn't work, run:
python -m black .