• pip切换国内的源


    pip install Flask -i http://pypi.douban.com/simple

    ~/.pip/pip.conf

    The documentation says the config file for Windows is %HOME%pippip.ini, but pip actually looks for %APPDATA%pippip.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:Userszpc

    windows:

    "C:Userszpcpippip.ini"

    [global]
    timeout = 60
    index-url = http://pypi.douban.com/simple
    trusted-host = pypi.douban.com

    非官方的python第三方软件包安装地址

    http://www.lfd.uci.edu/~gohlke/pythonlibs/
  • 相关阅读:
    第七周总结
    结对开发nabcd
    第六周总结
    地铁售票设计思想及部分代码
    第二周总结
    进度总结(地铁查询购票)
    第三周总结
    冲刺四
    冲刺三
    冲刺2
  • 原文地址:https://www.cnblogs.com/zhang-pengcheng/p/4470315.html
Copyright © 2020-2023  润新知