python 清华第三方库命令

直接安装 xlrd 库:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xlrd

下载 xlrd 库:

pip download -r .\requirement.txt -d ./pack -i https://pypi.tuna.tsinghua.edu.cn/simple

 

离线安装就使用:

pip install --no-index --find-links=./pack -r ./requirement.txt

其中 pack 文件夹里是 第三方库的 whl 文件

requirement.txt 里是 xlrd == 1.2.0

 

posted @ 2023-10-30 14:58  昆山皮皮虾  阅读(139)  评论(0)    收藏  举报