Pip停止工作并阻止安装任何软件包

时间:2018-12-03 10:38:56

标签: python python-3.x macos pip

我正在尝试使用 macOS Mojave 上的 pip 18.1 将新软件包安装到 Python 3.6 中,但是出现了很多错误并阻止了安装共。在下面的内容中,您将找到在命令窗口中看到的输出,其中只有个人详细信息带有星号。

仅作记录,超出范围

sudo -H pip install ipystata

我还发布了更简单的命令行

pip install ipystata

但错误仍然相同。

感谢您的帮助。

MacBook-Pro:~ ***$ sudo -H pip install ipystata
Collecting ipystata
  Downloading https://files.pythonhosted.org/packages/87/77/c9bf270e716e619a487c16797d1891bedfed5a274d1f40c9efc309bc9ffd/ipystata-0.3.8.tar.gz
Building wheels for collected packages: ipystata
  Running setup.py bdist_wheel for ipystata ... done
  Stored in directory: /var/root/Library/Caches/pip/wheels/b8/18/01/e31d3fdba25d73454b7ac8e957886eb78255d80299e789c709
Successfully built ipystata
Exception:
Traceback (most recent call last):
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2883, in _dep_map
    return self.__dep_map
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2677, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 93, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1654, in parseString
    raise exc
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1644, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1402, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3417, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1406, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3205, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected stringEnd (at char 33), (line:1, col:34)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2963, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 96, in __init__
    requirement_string[e.loc:e.loc + 8], e.msg
pip._vendor.packaging.requirements.InvalidRequirement: Parse error at "'; extra '": Expected stringEnd

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 143, in main
        status = self.run(options, args)
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 349, in run
        self._warn_about_conflicts(to_install)
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 475, in _warn_about_conflicts
        package_set, _dep_info = check_install_conflicts(to_install)
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_internal/operations/check.py", line 98, in check_install_conflicts
        package_set = create_package_set_from_installed()
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_internal/operations/check.py", line 41, in create_package_set_from_installed
        package_set[name] = PackageDetails(dist.version, dist.requires())
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2621, in requires
        dm = self._dep_map
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2885, in _dep_map
        self.__dep_map = self._compute_dependencies()
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2895, in _compute_dependencies
        reqs.extend(parse_requirements(req))
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2956, in parse_requirements
        yield Requirement(line)
      File "/Users/***/anaconda3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2965, in __init__
        raise RequirementParseError(str(e))
    pip._vendor.pkg_resources.RequirementParseError: Parse error at "'; extra '": Expected stringEnd

0 个答案:

没有答案