在Raspberry Pi 2上安装MotionEye的问题

时间:2016-11-15 21:58:00

标签: python raspbian raspberry-pi2 pycurl

我安装了所有必需的程序,但是当我尝试安装MotionEye(sudo pip install motioneye)时出现以下错误:

Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-EI7W87/pycurl

在/home/pi/.pip/pip.log

中存储失败的调试日志

我得到的完整日志:

Collecting motioneye
  Using cached motioneye-0.35.tar.gz
Collecting tornado>=3.1 (from motioneye)
  Using cached tornado-4.4.2.tar.gz
Requirement already satisfied: jinja2 in /usr/lib/python2.7/dist-packages (from motioneye)
Requirement already satisfied: pillow in /usr/lib/python2.7/dist-packages (from motioneye)
Collecting pycurl (from motioneye)
  Using cached pycurl-7.43.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-MEnLpy/pycurl/setup.py", line 823, in <module>
        ext = get_extension(sys.argv, split_extension_source=split_extension_source)
      File "/tmp/pip-build-MEnLpy/pycurl/setup.py", line 497, in get_extension
        ext_config = ExtensionConfiguration(argv)
      File "/tmp/pip-build-MEnLpy/pycurl/setup.py", line 71, in __init__
        self.configure()
      File "/tmp/pip-build-MEnLpy/pycurl/setup.py", line 107, in configure_unix
        raise ConfigurationError(msg)
    __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-MEnLpy/pycurl/

我尝试更新pip:

sudo pi install -U pip

 sudo pip install --upgrade setuptools

以及其他一些我忘了的事情。

我正在运行Raspbian 8:jessie

不确定这是否有帮助,这是我在我的pi上运行的其他程序:samba,miniDLNA,no-ip DUC和openhab。

我个人认为这是pycurl的一个问题,所以我尝试重新安装它,但没有成功:

 pi@raspberrypi:~ $ sudo pip install pycurl
Collecting pycurl
  Using cached pycurl-7.43.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-4w1sfS/pycurl/setup.py", line 823, in <module>
        ext = get_extension(sys.argv, split_extension_source=split_extension_source)
      File "/tmp/pip-build-4w1sfS/pycurl/setup.py", line 497, in get_extension
        ext_config = ExtensionConfiguration(argv)
      File "/tmp/pip-build-4w1sfS/pycurl/setup.py", line 71, in __init__
        self.configure()
      File "/tmp/pip-build-4w1sfS/pycurl/setup.py", line 107, in configure_unix
        raise ConfigurationError(msg)
    __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4w1sfS/pycurl/
pi@raspberrypi:~ $ sudo apt-get install python-pycurl
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 minidlna : Depends: libavformat56 (>= 6:11~beta1) but it is not going to be installed
            Depends: libavutil54 (>= 6:11~beta1) but it is not going to be installed
 motion : Depends: libavcodec56 (>= 6:11~beta1) but it is not going to be installed or
                   libavcodec-extra-56 (>= 6:11.7) but it is not going to be installed
          Depends: libavformat56 (>= 6:11~beta1) but it is not going to be installed
          Depends: libavutil54 (>= 6:11~beta1) but it is not going to be installed
          Depends: libmysqlclient18 (>= 5.5.24+dfsg-1) but it is not going to be installed
          Depends: libpq5 but it is not going to be installed
          Depends: libswscale3 (>= 6:11~beta1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

1 个答案:

答案 0 :(得分:1)

我想我解决了! 这确实是pycurl的一个问题。我修复了运行sudo apt-get install python-pycurl时遇到的错误 我解决了它:

sudo apt-get -f install

之后我可以使用:

安装pycurl
apt-get install python-pycurl

然后动画安装就像一个魅力!