python2.6安裝PyInstall

tar -zxvf PyInstaller-2.1.tar.gz
python setup.py install --record PyInstaller-2.1.txt

報錯:

AttributeError: 'NoneType' object has no attribute 'clone'

原因:

setuptool版本0.6c.11的BUG

解決辦法:
下載安裝0.6c12

卸載
easy_install -U setuptools
安裝
easy_install setuptools-0.6c12dev_r88997-py2.6.egg 

繼續安裝PyInstaller,報錯:

error: Could not find suitable distribution for Requirement.parse('distribute')

原因:
要求使用distribute工具,安裝distribute

tar -zxvf distribute-0.6.2.tar.gz 
python setup.py install --record distribute-0.6.2.txt

繼續安裝PyInstaller成功

你可能感兴趣的:(python)