在下载pip install allennlp==1.0.0 allennlp-models==1.0.0
时,我遇到了以下问题:
[6 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
building 'srsly.msgpack._unpacker' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for srsly
Failed to build thinc blis srsly
ERROR: Could not build wheels for srsly, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
我下载了:
pip install -vvv torch
pip install numpy
pip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
但还是不起作用。
我在视窗系统11 Pro上使用Python3.10.2。
我该怎么办?
发布于 2022-06-02 01:12:41
我有Python3.10,从pip安装psutil时也有相同的错误。我通过使用以下命令安装一个旧版本的pip来解决这个问题:
pip install pip==21.3.1
发布于 2022-03-26 03:07:29
您必须从python.org安装Python3.9.10版本,安装之后,升级您的pip,所有内容都将得到排序。
这是Python 3.10.2中的问题..。这种方法是可行的。我在安装海龟的过程中也遇到了同样的问题,所以我做到了,错误被解决了。
发布于 2022-02-24 13:55:23
我在执行时也面临着同样的问题:
python -m pip install package-name
在经历了许多失败的尝试之后,解决问题的方法是执行:
py -m pip install package-name
当我在终端中输入py时,它会显示以下信息:
Python 3.9.8 (tags/v3.9.8:bb3fdcf, Nov 5 2021, 20:48:33) [MSC v.1929 64 bit (AMD64)] on win32
当我在终端中输入python
时,它会显示以下信息:
Python 3.8.2 (default, Apr 9 2020, 13:17:39) [GCC 9.3.0 64 bit (AMD64)] on win32
我认为这个问题与Python解释器版本有关。
https://stackoverflow.com/questions/71009659
复制相似问题