[Python] How to Setup Python Env

Posted by Jarxi on 2020-09-18

How to Setup Python Env

Under project directory, type in terminal

1
2
3
python3 -m venv env
source ./env/bin/activate
pip3 install flask [flask as an example]

The first command creates a environment called env under project foler.
The second command tells the system that I wantto use the env I just created.
The third command install the package under the env folder.



支付宝打赏 微信打赏

赞赏一下