无法通过Raspbian上的pip安装软件包

时间:2016-06-28 12:23:31

标签: python-2.7 pip raspbian raspberry-pi2 dronekit-python

我正在尝试安装两个我需要将Raspberry Pi连接到Pixhawk Flight Controller的软件包。我需要的软件包是通过pip安装的,但我在尝试安装时仍然遇到相同的错误。任何Python / Raspbian专家都可以为我推荐一些解决方案或解码错误。

pi@raspberrypi:~ $ sudo pip install pymavlink
    enter code hereTraceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead

据我所知,我已经成功安装了所有依赖项,这些都是在这里听的:

pi@raspberrypi:~ $ sudo apt-get install screen python-wxgtk2.8 python-matplotlib python-opencv python-pip python-numpy python-dev libxml2-dev libxslt-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
libxml2-dev is already the newest version.
libxslt1-dev is already the newest version.
python-dev is already the newest version.
python-matplotlib is already the newest version.
python-numpy is already the newest version.
python-opencv is already the newest version.
python-pip is already the newest version.
python-wxgtk2.8 is already the newest version.
screen is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

0 个答案:

没有答案