美文网首页
Pyton 安装easy_install 出错

Pyton 安装easy_install 出错

作者: 一剑卿心 | 来源:发表于2018-05-18 23:03 被阅读35次

    使用命令行安装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

    image.png

    解决方法:手动下载安装包,然后在执行python ez_setup.py安装
    手动下载安装包,并将其放入到ez_setup.py的同一级目录。
    http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz

    相关文章

      网友评论

          本文标题:Pyton 安装easy_install 出错

          本文链接:https://www.haomeiwen.com/subject/srindftx.html