[英]Python package installation error - py_compiler msvc not found
I'm trying to install the chatterbot package on Python 3.8.3 under Windows 10 64-bit and encountering a strange error that I suspect must be related to some directory or PATH setting which, I hope, is an easy fix... I just don't know how yet.我正在尝试安装Chatterbot Zefe90A8E604A7C840E8D03A67F6B7D8Z上的ZA7F5F5F5F35426B927411FC9231B56382173Z 3.8.8.8.8.8.3只是还不知道如何。
Basically the first time I tried to install chatterbot ( pip install chatterbot
) it failed as the Visual C++ 14.0 requirement was not met.基本上我第一次尝试安装 chatterbot ( pip install chatterbot
)它失败了,因为没有满足 Visual C++ 14.0 的要求。 I followed the instructions here to install Visual C++, restarted, ran pip install --upgrade setuptools
and it returned that the requirement is already up to date, version 49.6.0.我按照 此处的说明安装 Visual C++,重新启动,运行pip install --upgrade setuptools
并返回要求已经是最新的,版本 49.6.0。
I tried running pip install chatter
again and now get a different error, see excerpt below.我尝试再次运行pip install chatter
并且现在得到一个不同的错误,请参见下面的摘录。 Basically it is happy that Visual C++ is there, but can't actually find the compiler.基本上很高兴 Visual C++ 在那里,但实际上找不到编译器。
Any suggestions?有什么建议么?
Thanks!谢谢!
Complete output (25 lines):
BLIS_COMPILER? None
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\blis
copying blis\about.py -> build\lib.win-amd64-3.8\blis
copying blis\benchmark.py -> build\lib.win-amd64-3.8\blis
copying blis\__init__.py -> build\lib.win-amd64-3.8\blis
creating build\lib.win-amd64-3.8\blis\tests
copying blis\tests\common.py -> build\lib.win-amd64-3.8\blis\tests
copying blis\tests\test_dotv.py -> build\lib.win-amd64-3.8\blis\tests
copying blis\tests\test_gemm.py -> build\lib.win-amd64-3.8\blis\tests
copying blis\tests\__init__.py -> build\lib.win-amd64-3.8\blis\tests
copying blis\cy.pyx -> build\lib.win-amd64-3.8\blis
copying blis\py.pyx -> build\lib.win-amd64-3.8\blis
copying blis\cy.pxd -> build\lib.win-amd64-3.8\blis
copying blis\__init__.pxd -> build\lib.win-amd64-3.8\blis
running build_ext
error: [WinError 2] The system cannot find the file specified
msvc
py_compiler msvc
I also had the same issue but now I think I found a work around this.我也有同样的问题,但现在我想我找到了解决这个问题的方法。
First I installed latest version of spacy.首先我安装了最新版本的 spacy。 The blis compilation was needed for an old version of spacy.旧版本的 spacy 需要 blis 编译。 But latest version of spacy comes in a compiled version, so no need to use msvc.但是最新版本的 spacy 是编译版本,所以不需要使用 msvc。
pip install -U spacy
Next, I installed chatterbot from the github source code.接下来,我从 github 源代码安装了 chatterbot。
git clone https://github.com/gunthercox/ChatterBot.git
pip install ./ChatterBot
When you install latest version from ChatterBot repo, you will need to revise Chatterbot/setup.py to be compatible with Python3.8.x - for now it only supports <=3.8当您从 ChatterBot repo 安装最新版本时,您需要修改 Chatterbot/setup.py 以兼容 Python3.8.x - 目前它仅支持 <=3.8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.