Ahm*_*neh 48 pip python-packaging allennlp
在下载的时候pip install allennlp==1.0.0 allennlp-models==1.0.0,我遇到了这样的问题:
[6 lines of output]\n running bdist_wheel\n running build\n running build_py\n running build_ext\n building \'srsly.msgpack._unpacker\' extension\n 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/\n [end of output]\n\n note: This error originates from a subprocess, and is likely not a problem with pip.\n ERROR: Failed building wheel for srsly\n Failed to build thinc blis srsly\n ERROR: Could not build wheels for srsly, which is required to install pyproject.toml-based projects\n [end of output]\n\n note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: subprocess-exited-with-error\n\n\xc3\x97 pip subprocess to install build dependencies did not run successfully.\n\xe2\x94\x82 exit code: 1\n\xe2\x95\xb0\xe2\x94\x80> See above for output.\n\nnote: This error originates from a subprocess, and is likely not a problem with pip.\nRun Code Online (Sandbox Code Playgroud)\n我已经下载了:
\npip install -vvv torch\npip install numpy\npip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html\nRun Code Online (Sandbox Code Playgroud)\n但它仍然不起作用。
\n我在Windows\xc2\xa011 Pro上使用 Python 3.10.2 。
\n我应该怎么办?
\n小智 43
我有 Python\xc2\xa03.10 并且从 pip 安装 psutil 时遇到相同的错误。我通过使用以下命令安装旧版本的 pip 解决了该问题:
\npip install pip==21.3.1\nRun Code Online (Sandbox Code Playgroud)\n
小智 11
我尝试了多种解决方案,但没有成功。终于找到了工作解决方案。运行以下命令。
pip install wheel setuptools pip --upgrade
Run Code Online (Sandbox Code Playgroud)
小智 6
您必须从 python.org 安装 Python 3.9.10 版本,安装后升级您的 pip,一切都会被排序。
这是Python 3.10.2中的问题...这个方法有效。我在安装乌龟时遇到了同样的问题,所以我这样做了,错误得到了解决。
小智 0
我从GitHub找到了类似的问题,感谢thaibee。这里我引用一下:
\n\n\n这是 Microsoft 产品的问题,\n很容易解决。
\n如果您也无法安装这些插件,\n需要从其他存储库下载它,例如:
\nhttps://www.lfd.uci.edu/~gohlke/pythonlibs/取决于python和系统的版本。
\n例如:对于我的 Windows 11 (x64) 和 Python 3.10,我使用了以下文件: pyodbc\xe2\x80\x914.0.32\xe2\x80\x91cp310\xe2\x80\x91cp310\xe2\x80\x91win_amd64.whl
\n安装非常简单: pip install pyodbc\xe2\x80\x914.0.32\xe2\x80\x91cp310\xe2\x80\x91cp310\xe2\x80\x91win_amd64.whl
\n之后,系统运行良好,并没有询问你关于VC的问题。
\n我发现这个解决方案与 Django 的 MySQL 插件有问题。我不明白为什么 - 但他们也使用 VC 进行安装过程。
\n
| 归档时间: |
|
| 查看次数: |
532783 次 |
| 最近记录: |