Pycharm中下载 requirement.txt 的文件并添加镜像源
2023-02-18 16:33:50 时间
在 requirement.txt 文件夹下进入CMD ,使用命令 :
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
这里我使用的是清华镜像源,也可以使用其他镜像源。
镜像地址:
阿里云 https://mirrors.aliyun.com/pypi/simple/
豆瓣 http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
华中科技大学 https://pypi.hustunique.com/
如果学校网速慢,比如:
这个时候就打开IDM或者迅雷复制 Downloading 后面的文字(https://pypi.tuna.tsinghua.edu.cn/packages/dc/24/2e678c33e5d534d57583e47a373f8d0d1f7375a15b7dafe58ce920c7ab8b/pandas-1.2.2-cp38-cp38-win_amd64.whl)去手动下载 ,仅需要1s不到。
然后切换到下载文件目录使用 pip 安装即可。
相关文章
- [PHP] 控制反转依赖注入的日常使用
- [PHP] 频率限制类
- [PHP] 适配器模式的日常使用
- [MySQL] timestamp和datetime的区别和大坑
- [PHP] foreach循环的引用赋值可能导致的问题
- [PHP] 邮件发送mail()函数失败问题 sendmail命令与postfix
- [css3] 看博客学习别人的旋转的星球
- [日常] 腾讯云发送邮件失败问题
- [日常] 正则表达式 小括号() 中括号[] 大括号{}
- [Redis]Redis的数据类型
- [PHP] 工厂模式的日常使用
- [PHP] 抽象类abstract的回顾
- [日常]灵活的频率限制实现
- [Redis] redis在centos下安装测试
- [MySQL] 测试where group by order by的索引问题
- [MySQL] 5.7版本以上group by语句报1055错误问题
- [PHP] 魔术方法__get __set __sleep __wakeup的实际使用
- [产品设计]电商设计知乎总结
- [PHP] assert()断言检测函数
- [PHP] curl访问https与CA证书问题