Getting Started with Python in VS Code
vscode plugins:
Python
&&Python Debugger
Ctrl+Shift+P
, start typing thePython: Create Environment
Ctrl+Shift+P
, start typing thePython: Select Interpreter
python 项目依赖文件导出
#创建虚拟环境
python3 -m venv myenv
#激活虚拟环境
source myenv/bin/activate
#安装依赖
pip install -r requirements.txt --proxy=192.168.1.5:1081
#查看已安装的包
pip list
#导出依赖项
pip freeze > requirements.txt