-
$ mkdir ~/my_project
Create project directory under user home. $ cd ~/my_project
-
$ git init
Create git repo. -
$ python -m venv venv
Create virtual environment within the project directory. Preferred over a centralised virtual environments directory e.g.my_venvs/my_project
as it is easier to find and manage. Not a hidden directory e.g..venv
for visibility. -
$ source venv/bin/activate
5a.$ source venv/Scripts/activate
for Python 3.9+ -
$ pip install pip --upgrade
Because for some reason the virtual environment's pip is an older version?! Hints of Python dependency hell emerging.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)