随笔分类 -  python环境

摘要:快速卸载/安装 pip freeze > requirements.txt # 将目前已安装的模块输出到modules文件中 pip install -r requirements.txt # 安装所有包 pip uninstall -r requirements.txt -y # 卸载所有包 阅读全文
posted @ 2022-05-10 12:17 只强 阅读(53) 评论(0) 推荐(0) 编辑
摘要:### 换源 ```shell # 清华源 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple # 阿里源 pip config set global.index-url https://mirrors.a 阅读全文
posted @ 2022-05-10 12:16 只强 阅读(286) 评论(0) 推荐(0) 编辑
摘要:使用虚拟环境 未安装virtualenv python -m venv ./dir #创建虚拟环境 source bin/activate #激活虚拟环境 deactivate #退出虚拟环境 conda install package_name #安装第三方库 安装virtualenv之后 vir 阅读全文
posted @ 2022-05-10 12:15 只强 阅读(44) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示