静态网站怎么维护开奖网站怎么做
安装Python库
- 一、pip安装
 - 参数
 - --no-deps
 
- 更换下载源,一劳永逸
 
- 二、conda下载
 
一、pip安装
换源安装并且信任该下载源
pip install pipenv -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
 
参数
–no-deps
 有些 packages 会依赖一些其它的 package,当我们离线安装 whl 的时候,就无法联网下载依赖包,所以我们需要 --no-deps 来去掉依赖包的安装,这样就能离线安装 whl 了
 在安装一个 package 后,一般会有 *.dist-info 文件夹,在里面找到 METADATA,用记事本打开,然后查找 Requires-Dist,后面列出的就是依赖包
更换下载源,一劳永逸
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
 
- 清华大学: https://pypi.tuna.tsinghua.edu.cn/simple
 - 阿里云:https://mirrors.aliyun.com/pypi/simple/
 - 豆瓣:https://pypi.doubanio.com/simple/
 - 中国科学技术大学:https://pypi.mirrors.ustc.edu.cn/simple/
 
