question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fail to install torch-scatter

See original GitHub issue

📚 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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
v-vinsoncommented, May 29, 2019

You can type “pip install torch-scatter==1.1.2” in cmd to install the package of torch-scatter.

0reactions
rusty1scommented, Jul 16, 2019

Looks good to me, so I am not really sure what‘s the cause of this issue 😦 I guess running the test suite of torch-scatter fails?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while installing PyTorch Scatter · Issue #2381 - GitHub
I am using the command "pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.0+cpu.html...
Read more >
Installation problem with PyTorch's Geometric. "torch-scatter ...
I'm having trouble installing torch-scatter from PyTorch Geometric to deal with some tabular data for question answering task based on TAPAS ...
Read more >
Installation — pytorch_geometric documentation
pip install pyg-lib torch-scatter torch-sparse -f ... In rare cases, CUDA or Python path problems can prevent a successful installation. pip may even...
Read more >
Unable to install torch-scatter and other packages - Jetson Nano
I am attempting to create a dockerized Jupyter notebook container based on the DLI image with my own additions of using PyTorch graph...
Read more >
torch-scatter - Python Package Health Analysis - Snyk
pip install torch-scatter. When running in a docker container without NVIDIA driver, PyTorch needs to evaluate the compute capabilities and may fail.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found