使用命令行安装easy_install:
python ez_setup.py
出现报错:
D:\Develop Kit\Python\ez_setup-0.9\ez_setup-0.9>python ez_setup.py
Extracting in c:\users\chrisguo\appdata\local\temp\tmpnkvyy6
Traceback (most recent call last):
File "ez_setup.py", line 485, in <module>
main(sys.argv[1:])
File "ez_setup.py", line 481, in main
_install(tarball)
File "ez_setup.py", line 73, in _install
tar = tarfile.open(tarball)
File "C:\Python27\lib\tarfile.py", line 1665, in open
raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
解决方法:手动下载安装包,然后在执行python ez_setup.py安装
手动下载安装包,并将其放入到ez_setup.py的同一级目录。
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
网友评论