This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make your project directory. | |
Open terminal with the project directory as current directory. | |
Make sure python3 and pip installed on system. | |
Run this command: $ python3 -m venv myvenv | |
virtual environment called 'myenv' has been created for your current project. | |
To activate the virtual environment: $ source myvenv/bin/activate | |
Make requirements.txt file in main project directory. Add this line: Django~=2.2.4 | |
(You can add more requirements later.) | |
Save requirements.txt file and run this command: $ pip install -r requirements.txt | |
Above will install current requirement python packages to the virtual environment. |