zoukankan      html  css  js  c++  java
  • 使用国内pypi源来安装python包

    国内源

    http://pypi.douban.com/  豆瓣

    http://pypi.hustunique.com/  华中理工大学

    http://pypi.sdutlinux.org/  山东理工大学

    http://pypi.mirrors.ustc.edu.cn/  中国科学技术大学

    使用方法

    手动指定:

    手动指定源,可以在pip后面跟-i 来指定源,比如用豆瓣的源来安装slinter(记得在源地址后面添加simple):

    $ sudo pip3 install -i http://pypi.douban.com/simple/ splinter
    Requirement already satisfied (use --upgrade to upgrade): splinter in /usr/local/lib/python3.4/dist-packages/splinter-0.7.3-py3.4.egg
    Downloading/unpacking selenium>=2.47.1 (from splinter)
      http://pypi.douban.com/simple/selenium/ uses an insecure transport scheme (http). Consider using https if pypi.douban.com has it available
      Downloading selenium-2.52.0.tar.gz (809kB): 809kB downloaded
      Running setup.py (path:/tmp/pip_build_root/selenium/setup.py) egg_info for package selenium
        
    Installing collected packages: selenium
      Running setup.py install for selenium
        
    Successfully installed selenium
    Cleaning up...
    $

    设置为默认源:

    因为不常用,而且手动指定pypi源也较方便,故在此不细说,请查阅pip或easy_install的说明文档或参考其他博客。

    详细参考:http://topmanopensource.iteye.com/blog/2004853

  • 相关阅读:
    ping 网关不同的原因(51cto博客搬迁)
    Linux Shell常用命令总结(51cto 博客搬迁)
    学生管理系统管理系统
    offset属性在各版本浏览器中的不同算法
    常用正则表达式
    select城市3级联动
    html5表单验证消息框
    清除浏览器默认选择效果
    排序之简单的冒泡排序
    简单的桶排序
  • 原文地址:https://www.cnblogs.com/ashboy/p/5236538.html
Copyright © 2011-2022 走看看