Open Madrid-Ista opened 4 years ago
Some modifications for _msvccompiler.py
of distutils
should help solve this problem:
Replace
r"Software\Microsoft\VisualStudio\SxS\VC7"
with
r"Software\WOW6432Node\Microsoft\VisualStudio\SxS\VC7"
and for Visual Studio 2019, add a new line in _find_vs2017()
:
# New line here
path = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community"
# End
path = os.path.join(path, "VC", "Auxiliary", "Build")
hello,I met this bug when I run it,too,But how to add the code for VS_2019?
Traceback (most recent call last): File "setup.py", line 21, in
out = check_output([CC, '--version'])
File "C:\ProgramData\Anaconda3\envs\poincare\lib\subprocess.py", line 356, in check_output
*kwargs).stdout
File "C:\ProgramData\Anaconda3\envs\poincare\lib\subprocess.py", line 423, in run
with Popen(popenargs, **kwargs) as process:
File "C:\ProgramData\Anaconda3\envs\poincare\lib\subprocess.py", line 729, in init
restore_signals, start_new_session)
File "C:\ProgramData\Anaconda3\envs\poincare\lib\subprocess.py", line 1017, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。