使用pip安装Python库超时解决办法
2024-09-03 02:45:56
如果在国内安装Python库,强烈推荐使用豆瓣的源
http://pypi.douban.com/simple/
可以这样使用
pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple ipython
比如安装django
pip install -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com django
每次这样会很麻烦,配置一下 Windows下面可以这样配置
1、在C:\Users\Administrator\AppData\Roaming目录下新建文件夹pip,
2、在pip文件夹下新建pip.ini文件,然后在pip.ini 里输入
[global]
timeout = 6000
index-url =http://pypi.douban.com/simple
trusted-host = pypi.douban.com
最新文章
- 【Win10开发】关于AutoSuggestBox
- Javascript 中的window.parent ,window.top,window.self 详解
- angularjs 自带的过滤器
- BZOJ1018 [SHOI2008]堵塞的交通traffic
- ASP.NET MVC使用过滤器进行权限控制
- 命令别名alias设置
- 卸载openfire
- windows下根据端口号杀死进程
- 如何设置修改WPS批注上的用户信息名称
- js运算符的优先级
- 《Linux命令行与shell脚本编程大全》 第十五章 学习笔记
- sql 里的 IF ELSE 语句用法
- UML和模式应用5:细化阶段(2)--细化阶段制品之领域模型
- Baidu WebFE(FEX)团队开发 的 文件上传插件 WebUploader
- 更改 centos 7的源为 阿里源
- ";Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased.";
- 在SQL Server中使用CLR调用.NET方法
- IIS网页GZIP压缩
- Xcode 编译静态库
- Arcgis for Js之鼠标经过显示对象名的实现