错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出-同时使用pi



正在尝试安装-pip安装git+https://github.com/pennmem/ptsa_new

得到这个错误:

ERROR: Command errored out with exit status 1:
command: 'C:UsersNofaranaconda3envspy3_envpython.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Nofar\AppData\Local\Temp\pip-req-build-39er9e6i\setup.py'"'"'; __file__='"'"'C:\Users\Nofar\AppData\Local\Temp\pip-req-build-39er9e6i\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersNofarAppDataLocalTemppip-pip-egg-info-3zy5mp_2'
cwd: C:UsersNofarAppDataLocalTemppip-req-build-39er9e6i
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersNofarAppDataLocalTemppip-req-build-39er9e6isetup.py", line 34, in <module>
os.environ["VS90COMNTOOLS"] = os.environ["VS140COMNTOOLS"]
File "C:UsersNofaranaconda3envspy3_envlibos.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'VS140COMNTOOLS'
----------------------------------------
WARNING: Discarding git+https://github.com/pennmem/ptsa_new.git. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

请帮忙?

setup.py开始,当您从源代码进行安装时,它清楚地表明您需要在系统中安装Visual Studio C++ Redistributable

setup.py中的相关章节

# for windows install see http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat
# for visual studio compilation you need to SET VS90COMNTOOLS=%VS140COMNTOOLS%
if sys.platform.startswith("win"):
os.environ["VS90COMNTOOLS"] = os.environ["VS140COMNTOOLS"]

此答案解释了所需VSC版本的安装程序https://stackoverflow.com/a/18045219/995052.

相关内容

  • 没有找到相关文章

最新更新