У меня есть парсер, написанный на основе grab. На винде все работало прекрасно, но перейдя на Ubuntu я пытаюсь установить grab:
user@user-UBUNTU:~$ pip install grab
И получаю вот это:
Downloading/unpacking grab
Downloading grab-0.6.30.tar.gz (96kB): 96kB downloaded
Running setup.py (path:/tmp/pip_build_user/grab/setup.py) egg_info for package grab
Requirement already satisfied (use --upgrade to upgrade): lxml in /usr/lib/python2.7/dist-packages (from grab)
Downloading/unpacking pycurl (from grab)
Downloading pycurl-7.43.0.tar.gz (182kB): 182kB downloaded
Running setup.py (path:/tmp/pip_build_user/pycurl/setup.py) egg_info for package pycurl
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_user/pycurl/setup.py", line 823, in <module>
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/tmp/pip_build_user/pycurl/setup.py", line 497, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/tmp/pip_build_user/pycurl/setup.py", line 71, in __init__
self.configure()
File "/tmp/pip_build_user/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
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_user/pycurl/setup.py", line 823, in <module>
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/tmp/pip_build_user/pycurl/setup.py", line 497, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/tmp/pip_build_user/pycurl/setup.py", line 71, in __init__
self.configure()
File "/tmp/pip_build_user/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
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_user/pycurl
Storing debug log for failure in /home/user/.pip/pip.log
И так с любым пакетом pip. Что делать?