File "setup.py", line 6, in ? from setuptools import setup, find_packages ImportError:...

安装python的pip时候出现的问题:

执行# python setup.py install


File "setup.py", line 6, in ?

    from setuptools import setup, find_packages

ImportError: No module named setuptools


解决办法:

1.wget http://peak.telecommunity.com/dist/ez_setup.py


2.下载:http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg

3.安装 sh setuptools-0.6c11-py2.7.egg  


到了 sh setuptools-0.6c11-py2.7.egg  这一步就出现面的错误了,

setuptools-0.6c11-py2.7.egg: line 3: exec: python2.7: not found

解决方法:

 ln -s /usr/local/python27/bin/python /usr/bin/

4.切换到pip目录  然后执行# python setup.py install

结果:



完结 如有疑问 欢迎留言。。。

你可能感兴趣的:(File "setup.py", line 6, in ? from setuptools import setup, find_packages ImportError:...)