pip安装-运行build_ext错误:[WinError 2]系统找不到指定的文件

时间:2020-10-01 01:41:43

标签: python pip

我正在尝试使用pip在Pycharm虚拟环境中安装dialogflow软件包:

pip install dialogflow

,它在此错误处停止:

running build_ext

error: [WinError 2] The system cannot find the file specified

'Command "C:\Users\mclovine\PycharmProjects\sunshinveconv\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\mclovine\\AppData\\Local\\Temp\\pip-install-zotus0_t\\grpcio\\setup.py';f=getattr(
tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\mclovine\AppData\Local\Temp\pip-record-ub03a865\install-record.txt --si
ngle-version-externally-managed --compile --install-headers C:\Users\mclovine\PycharmProjects\sunshinveconv\venv\include\site\python3.8\grpcio" failed with error code 1 in C:\Users\mclovine\AppData\Local\Temp\pip-instal
l-zotus0_t\grpcio\'

当我在conda虚拟环境中尝试相同的安装时,它可以正常工作,并且没有错误。

我正在使用:Windows64,Python 3.8.3,Visual C ++ BuildTools 14.0

任何帮助将不胜感激,谢谢

1 个答案:

答案 0 :(得分:0)

降级到 Python 3.7 对我有用(参考:https://github.com/gunthercox/ChatterBot/issues/1699#issuecomment-680807921