python/环境.py

9 lines
468 B
Python
Raw Normal View History

2025-01-08 09:17:08 +08:00
# 点击运行【安装第三方库.py】即可安装本课用到的第三方库
# 使用清华镜像源安装amzqr
import pip
pip.main(['install','Pyemail', '--index-url', 'https://pypi.tuna.tsinghua.edu.cn/simple'])
#pip freeze > huanjing.txt
#pip install -r huanjing.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
#以上为终端命令
#第一条可创建一个叫huanjing的txt文本txt中有一些第三方库
#第二条可下载huanjing中的第三方库