【问题标题】:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hn4hol_z/spacy/命令“python setup.py egg_info”失败,错误代码 1 在 /tmp/pip-build-hn4hol_z/spacy/
【发布时间】:2021-10-23 16:10:12
【问题描述】:

我正在尝试使用终端在另一台服务器上安装一个名为“mudes”的 Python 包。当我想使用安装它时

pip install mudes

pip3 install mudes

,我收到以下错误:

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

我也用过

pip install --no-cache-dir mudes

,导致同样的错误和

pip3 install --upgrade setuptools --user python

,结果如下:

Requirement already up-to-date: setuptools in ./pythonProject/venv/lib/python3.6/site-packages
Collecting python
  Could not find a version that satisfies the requirement python (from versions: )
No matching distribution found for python

我该如何解决这个问题?

【问题讨论】:

    标签: python macos installation package remote-server


    【解决方案1】:

    设置工具可能已过时。请先尝试运行此命令,看看是否有帮助。

    pip install --upgrade setuptools
    

    【讨论】:

      【解决方案2】:

      我在尝试安装 pycaret 时遇到了同样的问题。我不是专家,所以我不知道为什么,但这对我有用

      pip3 install --upgrade pip
      

      【讨论】:

        【解决方案3】:

        看起来 spacy 没有安装。

        pip3 install spacy
        

        它对我有用,看看它是否对你有帮助。

        【讨论】:

          猜你喜欢
          • 2017-12-13
          • 2016-02-14
          • 2018-05-18
          • 2023-04-01
          • 2019-08-24
          • 1970-01-01
          • 2018-11-03
          • 1970-01-01
          • 2018-05-28
          相关资源
          最近更新 更多