推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
rockzhou8
V2EX  ›  Python

Windows 下 pypi 源怎么修改默认值?改了 pip.ini 不成功

  •  
  •   rockzhou8 ·
    rockzhou8 · Jul 11, 2016 · 17953 views
    This topic created in 3775 days ago, the information mentioned may be changed or developed.
    1.改了 C:\Users\Administrator\AppData\Local\pip 下的 pip.ini ,内容是:
    [global]
    index-url = https://pypi.douban.com/simple
    [install]
    trusted-host=pypi.doubanio.com

    2.ping 了一下 pypi.python.org ,地址是 151.101.16.223

    3.然后 pip install 东西,巨慢无比,如图:


    看了资源管理器,果然。。。
    名称 PID 地址 发送(字节 /秒) 接收(字节 /秒) 总数(字节 /秒)
    python.exe 6640 151.101.16.223 27 1,517 1,544

    4.请教到底如何修改 pyip 源才能成功?
    Supplement 1  ·  Dec 19, 2016
    2L 3L 已经有了答案~
    配置文件在 C:\Users\用户名\pip\pip.ini
    9 replies  •  2019-04-19 10:35:05 +08:00
    larsenlouis
    larsenlouis
    Jul 11, 2016 via Android❤️1
    1
    去 https://lug.ustc.edu.cn/wiki/mirrors/help/pypi , ustc 源速度不错。 pip 配置文件夹没记错的话,应该是放在当前用户文件夹下
    dofine
    dofine
    Jul 12, 2016❤️1
    2
    额 我是 win7 , C:\Users\用户名\pip\pip.ini 啊?
    aec4d
    aec4d
    Jul 12, 2016❤️2
    3
    %USERPROFILE%\pip\pip.ini
    3 年前刚开始学的时候还记录过这个坑
    https://ficapy.github.io/2013/12/27/pip_use_china_mirror/
    rockzhou8
    rockzhou8
    OP
    Jul 12, 2016❤️1
    4
    @larsenlouis
    @aec4d
    @dofine
    配置文件直接放在当前目录下真的是活久见!
    不过我也是想当然的就放到 C:\Users\Administrator\AppData\Local\pip 下了
    zzr0427
    zzr0427
    Nov 22, 2016
    5
    @rockzhou8 很有用,感谢
    lawlietfans
    lawlietfans
    Dec 1, 2016
    6
    非常感谢,我也是被( http://www.jb51.net/article/98401.htm )坑了。
    pip.ini 新建到%APPDATA%完全没用。
    应该新建到%USERPROFILE%\pip\pip.ini
    ```py
    [global]
    index-url = https://pypi.douban.com/simple
    ```
    速度立马飞起
    kitano
    kitano
    Dec 19, 2016
    7
    光是第一步的配置就成了墙内用户的最大障碍,一堆坑是教放%APPDATA%目录里,谢分享
    rebeccaMyKid
    rebeccaMyKid
    May 27, 2017
    8
    @lawlietfans 爱你木木哒
    oldbird
    oldbird
    Apr 19, 2019
    9
    WIN10 是不是得放在 APPDATA 下啊?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2272 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 13:47 · PVG 21:47 · LAX 05:47 · JFK 08:47
    ♥ Do have faith in what you're doing.