facebookresearch / poincare-embeddings

PyTorch implementation of the NIPS-17 paper "Poincaré Embeddings for Learning Hierarchical Representations"
Other
1.68k stars 230 forks source link

When I run "python setup.py build_ext --inplace", some problems occur #62

Open Madrid-Ista opened 4 years ago

Madrid-Ista commented 4 years ago

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] 系统找不到指定的文件。

martinwhl commented 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")
qimg412 commented 2 years ago

hello,I met this bug when I run it,too,But how to add the code for VS_2019?