Debian系统Python使用虚拟环境配置模块
2022-04-03 / Python / 868 次围观 / 0 次吐槽 /首先安装虚拟环境
Bash
apt-get install python3-venv
创建虚拟环境目录
Bash
python3 -m venv tutorial-env
加载虚拟环境
Bash
source tutorial-env/bin/activate
然后安装需要的模块
Bash
pip3 install -r requirements.txt
后台运行py项目
Bash
nohup python3 -u 项目名.py > run.log 2>&1 &
- 上一篇:debian10 apt-get更新源
- 下一篇:Jetbrains激活服务器
Powered By Cheug's Blog
Copyright Cheug Rights Reserved.