pytorch_geometric: fail to install torch-scatter
📚 Installation
When I type pip install torch-scatter
in the cmd, it shows the following error ‘cl.exe’ failed with 0x000007b code.
Collecting torch-scatter
Using cached https://files.pythonhosted.org/packages/d4/83/67eeea00c2db1959e2ff95d8680dbd756977bfab254bda8658f09dc3bc11/torch_scatter-1.1.2.tar.gz
Building wheels for collected packages: torch-scatter
Building wheel for torch-scatter (setup.py) ... error
Complete output from command d:\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-fcm_sykj\\torch-scatter\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\xxx\AppData\Local\Temp\pip-wheel-f40r_y33 --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\test
copying test\test_backward.py -> build\lib.win-amd64-3.6\test
copying test\test_forward.py -> build\lib.win-amd64-3.6\test
copying test\test_multi_gpu.py -> build\lib.win-amd64-3.6\test
copying test\test_std.py -> build\lib.win-amd64-3.6\test
copying test\utils.py -> build\lib.win-amd64-3.6\test
copying test\__init__.py -> build\lib.win-amd64-3.6\test
creating build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\add.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\div.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\max.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\mean.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\min.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\mul.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\std.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\sub.py -> build\lib.win-amd64-3.6\torch_scatter
copying torch_scatter\__init__.py -> build\lib.win-amd64-3.6\torch_scatter
creating build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\ext.py -> build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\gen.py -> build\lib.win-amd64-3.6\torch_scatter\utils
copying torch_scatter\utils\__init__.py -> build\lib.win-amd64-3.6\torch_scatter\utils
running build_ext
d:\python36\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: Command 'cl' returned non-zero exit status 3221225595.
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'torch_scatter.scatter_cpu' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\cpu
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\python36\lib\site-packages\torch\lib\include -Id:\python36\lib\site-packages\torch\lib\include\torch\csrc\api\include -Id:\python36\lib\site-packages\torch\lib\include\TH -Id:\python36\lib\site-packages\torch\lib\include\THC -Id:\python36\include -Id:\python36\include /EHsc /Tpcpu/scatter.cpp /Fobuild\temp.win-amd64-3.6\Release\cpu/scatter.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=scatter_cpu -D_GLIBCXX_USE_CXX11_ABI=0
error: command 'cl.exe' failed: No such file or directory
----------------------------------------
Failed building wheel for torch-scatter
Running setup.py clean for torch-scatter
Failed to build torch-scatter
Environment
- OS: win10
- Python version: python 3.6
- PyTorch version: 1.0.1
- CUDA/cuDNN version: 9.0/7.0
- GCC version: 6.3.0
- How you tried to install PyTorch Geometric and its extensions (pip, source): pip
- Any other relevant information: I dont use anaconda
Additional context
First, I think it is a problem about environment variable. But when I add D:\Microsoft Visual Studio 14.0\VC\bin
to the PATH
in order to use cl.exe
, it still failed to install torch-scatter
.
I am not a C/C++ coder. Hope can get some useful information here.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
You can type “pip install torch-scatter==1.1.2” in cmd to install the package of torch-scatter.