Pycharm create a python virtual environment
-
Open the File -> Settings
-
Found Project Interpreter
-
Select the right gear icon, click Add
-
As shown below, select the virtual environment put the package folder, click OK
Small expand
-
Requirements.txt install python with the command packet:
pip install - r requirements.txt
-
Generate requirements.txt command:
pip freeze > requirements.txt
-
Command-line switch virtual environment using git-bash.exe [Note that is the shell command line]
source venv/Scripts/activate
-
[Command-line tool is recommended to use git-bash.exe]