最近使用 sudo easy_install pycharm-debug.egg
一直出现
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 5, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2994, in
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2980, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3007, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 660, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 852, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'setuptools==24.0.3' distribution was not found and is required by the application
看来得修改一下easy_install
wget
python distribute_setup.py
然后安装 sudo easy_install pycharm-debug.egg一切ok
distribute安装:
wget --no-check-certificate
unzip distribute-0.7.3.zip
cd distribute-0.7.3
python2.7 setup.py install
setuptools安装:
#
#wget --no-check-certificate setuptools-1.4.2.tar.gz
#tar zxvf setuptools-1.4.2.tar.gz
#cd setuptools-1.4.2
#python setup.py install
安装后默认安装到 /usr/local/bin/easy_install
建立软连接: ln -s /usr/local/bin/easy_install /usr/bin/easy_install
#easy_install --version
安装Pip:
wget --no-check-certificate
tar zxvf pip-1.4.1.tar.gz
cd pip-1.4.1
python setup.py install
安装后默认安装到 /usr/local/bin/pip
建立软连接:ln -s /usr/local/bin/pip /usr/sbin/pip
阅读(1396) | 评论(0) | 转发(0) |