@tschin

Как исправить ошибки при установке Grab через pip3?

Здравствуйте! Не могу установить Grab через pip3 в Linux Mint 18
Выдает следующее:

sudo pip3 install grab
The directory '/home/qaz/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The directory '/home/qaz/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting grab
  Downloading grab-0.6.35.tar.gz (64kB)
    100% |████████████████████████████████| 65kB 938kB/s 
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/_vendor/pkg_resources/__init__.py", line 2577, in _dep_map
    return self.__dep_map
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/_vendor/pkg_resources/__init__.py", line 2652, in __getattr__
    raise AttributeError(attr)
AttributeError: _Distribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/basecommand.py", line 223, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/commands/install.py", line 282, in run
    requirement_set.prepare_files(finder)
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/req/req_set.py", line 334, in prepare_files
    functools.partial(self._prepare_file, finder))
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/req/req_set.py", line 321, in _walk_req_to_install
    more_reqs = handler(req_to_install)
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/req/req_set.py", line 561, in _prepare_file
    set(req_to_install.extras) - set(dist.extras)
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/_vendor/pkg_resources/__init__.py", line 2774, in extras
    return [dep for dep in self._dep_map if dep]
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/_vendor/pkg_resources/__init__.py", line 2591, in _dep_map
    dm.setdefault(extra,[]).extend(parse_requirements(reqs))
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/_vendor/pkg_resources/__init__.py", line 2924, in parse_requirements
    "version spec")
  File "/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg/pip/_vendor/pkg_resources/__init__.py", line 2889, in scan_list
    raise RequirementParseError(msg, line, "at", line[p:])
pip._vendor.pkg_resources.RequirementParseError: Expected version spec in lxml;platform_system!="Windows" at ;platform_system!="Windows"


Как исправить?
  • Вопрос задан
  • 326 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы