0

我无法在我的 Raspberry 中运行 PIP(在 Wheezy 中运行)。在我总是收到此消息后:

~ $ pip3
/usr/local/lib/python3.2/dist-packages/pip-8.1.2-py3.2.egg/pip/_vendor/pkg_resources/__init__.py:80:
UserWarning: Support for Python 3.0-3.2 has been dropped. Future
versions will fail here.   warnings.warn(msg) Traceback (most recent
call last):   File "/usr/local/bin/pip3", line 9, in <module>
    load_entry_point('pip==8.1.2', 'console_scripts', 'pip3')()   File "/usr/lib/python3/dist-packages/pkg_resources.py", line 337, in
load_entry_point
    return get_distribution(dist).load_entry_point(group, name)   File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2280, in
load_entry_point
    return ep.load()   File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1990, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File
"/usr/local/lib/python3.2/dist-packages/pip-8.1.2-py3.2.egg/pip/__init__.py",
line 16, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa   File
"/usr/local/lib/python3.2/dist-packages/pip-8.1.2-py3.2.egg/pip/vcs/mercurial.py",
line 9, in <module>
    from pip.download import path_to_url   File "/usr/local/lib/python3.2/dist-packages/pip-8.1.2-py3.2.egg/pip/download.py",
line 36, in <module>
    from pip.utils.ui import DownloadProgressBar, DownloadProgressSpinner   File
"/usr/local/lib/python3.2/dist-packages/pip-8.1.2-py3.2.egg/pip/utils/ui.py",
line 15, in <module>
    from pip._vendor.progress.bar import Bar, IncrementalBar   File "/usr/local/lib/python3.2/dist-packages/pip-8.1.2-py3.2.egg/pip/_vendor/progress/bar.py",
line 48
    empty_fill = u'∙'
                      ^ SyntaxError: invalid syntax

我编译了 Python3.5,现在尝试运行 get-pip.py 脚本。但这给了我这个错误:

Traceback (most recent call last):   File "get-pip.py", line 19177, in
<module>
    main()   File "get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)   File "get-pip.py", line 82, in bootstrap
    import pip   File "/tmp/tmprewy_1xt/pip.zip/pip/__init__.py", line 16, in <module>   File
"/tmp/tmprewy_1xt/pip.zip/pip/vcs/subversion.py", line 9, in <module> 
File "/tmp/tmprewy_1xt/pip.zip/pip/index.py", line 30, in <module>  
File "/tmp/tmprewy_1xt/pip.zip/pip/wheel.py", line 39, in <module>  
File "/tmp/tmprewy_1xt/pip.zip/pip/_vendor/distlib/scripts.py", line
14, in <module>   File
"/tmp/tmprewy_1xt/pip.zip/pip/_vendor/distlib/compat.py", line 66, in
<module> ImportError: cannot import name 'HTTPSHandler'

已安装 OpenSSL。

有什么我想念的想法吗?

谢谢你的帮助。

4

1 回答 1

0

好的,整理好了。显然我的 Python 2.7 安装有些损坏。在我这样做之后sudo apt-get -u dist-upgrade- 有一些小问题 - 修复了安装。之后我重新构建了 3.5.1 二进制文件,pip3 现在可以正常工作了。

于 2016-05-30T14:59:20.427 回答