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

转载于:https://www.cnblogs.com/yuyue2014/p/4706233.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值