pip切换国内的源
2024-08-29 08:05:57
pip install Flask -i http://pypi.douban.com/simple
~/.pip/pip.conf
The documentation says the config file for Windows is %HOME%\pip\pip.ini, but pip actually looks for %APPDATA%\pip\pip.ini. It only uses %HOME% if %APPDATA% isn't set.
On Windows pip should look for its config file in the 'pip' subdirectory of
the user's Home directory (as returned by os.path.expanduser('~')
). The
%APPDATA% directory is hidden by default, so it seems it's not intended for
users to modify it directly.
The fix is just a matter of removing one line from locations.py. I'm attaching
a diff.
%HOME% = C:\Users\<usrname>, e.g. C:\Users\zpc
windows:
"C:\Users\zpc\pip\pip.ini"
[global]
timeout = 60
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
非官方的python第三方软件包安装地址
http://www.lfd.uci.edu/~gohlke/pythonlibs/
最新文章
- G&#233;n&#233;ralement c&#39;est un m&#233;lange qui me devient personnellement
- (转)Oracle 获取上周一到周末日期的查询sql语句
- java.util.ConcurrentModificationException --map
- sql server之数据库语句优化
- session和cookie工作原理说明
- Linux驱动编程--基于I2C子系统的I2C驱动
- crawler
- android .9.png ”点九” 图片制作方法
- HTTP 504 错误
- VS快捷方式小技巧
- Toast的替代者Snackbar
- php函数参数
- AES加密 C++调用Crypto++加密库 样例
- 多重if-else语句
- linux 安装Brew
- Redis五大数据类型以及操作
- VMware Workstation Pro14安装
- 关于python的基础知识
- android触控,先了解MotionEvent
- The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-s