zoukankan      html  css  js  c++  java
  • Python easy_install

    系统中有高版本的Python, 直接pip3 install ipcalc安装,都是装到高版本的Python

    系统默认的Python是2.7.6,现在想装到默认版本中,可以使用easy_install 

    yuyue@workplace:/usr/bin $ sudo easy_install ipcalc
    Password:
    Searching for ipcalc
    Reading http://pypi.python.org/simple/ipcalc/
    Best match: ipcalc 1.1.3
    Downloading https://pypi.python.org/packages/source/i/ipcalc/ipcalc-1.1.3.tar.gz#md5=14aa5f92d316631df6c4557a0e87c61b
    Processing ipcalc-1.1.3.tar.gz
    Writing /tmp/easy_install-ZyioKD/ipcalc-1.1.3/setup.cfg
    Running ipcalc-1.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZyioKD/ipcalc-1.1.3/egg-dist-tmp-C92sIM
    zip_safe flag not set; analyzing archive contents...
    Adding ipcalc 1.1.3 to easy-install.pth file

    Installed /Library/Python/2.7/site-packages/ipcalc-1.1.3-py2.7.egg
    Processing dependencies for ipcalc
    Finished processing dependencies for ipcalc

    yuyue@workplace:/usr/bin $ sudo easy_install IPy
    Searching for IPy
    Reading http://pypi.python.org/simple/IPy/
    Best match: IPy 0.83
    Downloading https://pypi.python.org/packages/source/I/IPy/IPy-0.83.tar.gz#md5=7b8c6eb4111b15aea31b67108e769712
    Processing IPy-0.83.tar.gz
    Writing /tmp/easy_install-XIZ3N9/IPy-0.83/setup.cfg
    Running IPy-0.83/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XIZ3N9/IPy-0.83/egg-dist-tmp-4Li7BL
    zip_safe flag not set; analyzing archive contents...
    Adding IPy 0.83 to easy-install.pth file

    Installed /Library/Python/2.7/site-packages/IPy-0.83-py2.7.egg
    Processing dependencies for IPy
    Finished processing dependencies for IPy


    yuyue@workplace:/usr/bin $ python
    Python 2.7.6 (default, Sep 9 2014, 15:04:36)
    [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import IPy

  • 相关阅读:
    P1099 [NOIP2007 提高组] 树网的核
    UVA 数学题选做
    Codeforces 729 Div.2
    P1600 [NOIP2016 提高组] 天天爱跑步
    CF1106F Lunar New Year and a Recursive Sequence
    P6091 【模板】原根
    P4774 [NOI2018] 屠龙勇士
    P1106 删数问题
    P1209 [USACO1.3]修理牛棚 Barn Repair
    网络(network)
  • 原文地址:https://www.cnblogs.com/yuyue2014/p/4706233.html
Copyright © 2011-2022 走看看