Pytorch_geometric: fail to install torch-scatter

Created on 20 Apr 2019  Â·  16Comments  Â·  Source: rusty1s/pytorch_geometric

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

Most helpful comment

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

All 16 comments

Hi, what is the error message after you add cl.exe to the PATH?

Thank you for your quick reply. When I remove D:\Microsoft Visual Studio 14.0\VC\bin from PATH and type pip install torch-scatter in the cmd prompt, it opens a new dialog telling me that it cannot excute the code because it cannot find the mspdb140.dll file. After I close the dialog , the original cmd prompt shows the following output.

 Running setup.py clean for torch-scatter
Failed to build torch-scatter
Installing collected packages: torch-scatter
  Running setup.py install for torch-scatter ... error
    Complete output from command d:\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-pz5b47kj\\torch-scatter\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\xxx\AppData\Local\Temp\pip-record-0czsx4eo\install-record.txt --single-version-externally-managed --compile:
    running install
    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 3221225781.
      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

After I add it to PATH, the output is what I show in the last comment (https://github.com/rusty1s/pytorch_geometric/issues/226#issue-435398041).

So it seems it still can not find your compiler. Please verify that cl.exe is executable from the command line.

#error -- unsupported GNU version! gcc versions later than 6 are not supported!
^~~~~
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

As the error suggest, try downgrading your GCC, e.g., to version 5.4.0.

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

I also have a problem with "ERROR: failed building wheel for torch-scatter", the message is like this:

ERROR: Complete output from command 'c:\users\wxd\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\Users\wxd\AppData\Local\Temp\pip-install-hrj8b7ua\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\wxd\AppData\Local\Temp\pip-wheel-o3ees3c9' --python-tag cp35:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\test
copying test\test_backward.py -> build\lib.win-amd64-3.5\test
copying test\test_forward.py -> build\lib.win-amd64-3.5\test
copying test\test_max_min.py -> build\lib.win-amd64-3.5\test
copying test\test_multi_gpu.py -> build\lib.win-amd64-3.5\test
copying test\test_std.py -> build\lib.win-amd64-3.5\test
copying test\utils.py -> build\lib.win-amd64-3.5\test
copying test__init__.py -> build\lib.win-amd64-3.5\test
creating build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\add.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\div.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\max.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\mean.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\min.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\mul.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\std.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter\sub.py -> build\lib.win-amd64-3.5\torch_scatter
copying torch_scatter__init__.py -> build\lib.win-amd64-3.5\torch_scatter
creating build\lib.win-amd64-3.5\torch_scatter\utils
copying torch_scatter\utils\ext.py -> build\lib.win-amd64-3.5\torch_scatter\utils
copying torch_scatter\utils\gen.py -> build\lib.win-amd64-3.5\torch_scatter\utils
copying torch_scatter\utils__init__.py -> build\lib.win-amd64-3.5\torch_scatter\utils
running build_ext
c:\users\wxd\anaconda3\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for g++: Command 'g++' returned non-zero exit status 1
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'torch_scatter.scatter_cpu' extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\cpu


other error information:
c:\users\wxd\anaconda3\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for g++: Command 'g++' returned non-zero exit status 1

warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))

c:\users\wxd\anaconda3\lib\site-packages\torch\include/torch/csrc/jit/ir.h:1077:20: error: function 'torch::jit::Value* torch::jit::Graph::insertGetAttr(torch::jit::Value*, const string&)' definition is marked dllimport

Maybe there is some trouble with my g++?

platform information:
OS:windows 10
python version: python 3.5
torch verison: pytorch 1.1
cuda version: cuda 9.0
gcc version: gcc 5.3.0
relevant information: I use Anaconda

I will be appeciate if you can help me

This could indeed be the problem. It may help to see if gcc 5.4.0 fixes your problems.

Edit: I see that you are on Windows. The MSVC compiler should work just fine there.

This could indeed be the problem. It may help to see if gcc 5.4.0 fixes your problems.
Edit: I see that you are on Windows. The MSVC compiler should work just fine there.

OK,I will try using GCC 5.4.0 on my Anaconda, thank U~

I change OS to ubuntu16.04 bacause anaconda does not have gcc 5.4.0 for win...Installation is OK, but when I run my code, there is some other problems
in the file .../torch_scatter/utils/ext.py and the code is import torch_scatter.scatter_cuda, and there is an error
:Import error ,scatter_cuda.cpython-37m-x86_64-linux-gnu.so:undined symbol: __cudaPopCallConfiguration

Seems related to point 7 in the FAQ.

emmmmm, I try the command, but the results are same and both of them show cuda 9.0.176, :(

Thanks for your help~

Please uninstall torch-scatter, reinstall it and show me the installation log. There must have been an error there.

Created temporary directory: /tmp/pip-ephem-wheel-cache-0x7o1yj_
Created temporary directory: /tmp/pip-req-tracker-756yuiai
Created requirements tracker '/tmp/pip-req-tracker-756yuiai'
Created temporary directory: /tmp/pip-install-8z4jmdcj
Collecting torch-scatter
1 location(s) to search for versions of torch-scatter:

  • https://pypi.org/simple/torch-scatter/
    Getting page https://pypi.org/simple/torch-scatter/
    Starting new HTTPS connection (1): pypi.org:443
    https://pypi.org:443 "GET /simple/torch-scatter/ HTTP/1.1" 200 1104
    Analyzing links from page https://pypi.org/simple/torch-scatter/
    Found link https://files.pythonhosted.org/packages/29/96/566ac314e796d4b07209a3b88cc7a8d2e8582d55819e33f72e6c0e8d8216/torch_scatter-0.3.0.tar.gz#sha256=9e5e5a6efa4ef45f584e8611f83690d799370dd122b862646751ae112b685b50 (from https://pypi.org/simple/torch-scatter/), version: 0.3.0
    Found link https://files.pythonhosted.org/packages/6a/b0/ecffacddf573c147c70c6e43ce05d24f007155ce3fb436959d3d2a24da46/torch_scatter-1.0.2.tar.gz#sha256=ccda794c25265b3450206b7fb0bf74f16a0b45f3f72d9547a42e44648a32faee (from https://pypi.org/simple/torch-scatter/), version: 1.0.2
    Found link https://files.pythonhosted.org/packages/08/09/07b106f3e74246f4ecf6517013a053b6dd7486c4f889d81f39adc662431f/torch_scatter-1.0.3.tar.gz#sha256=e626993194819ba65cdf89a52fbbb7780569d9e157bc63dbef13ead6b7a33930 (from https://pypi.org/simple/torch-scatter/), version: 1.0.3
    Found link https://files.pythonhosted.org/packages/2d/70/df2bc259d9606f00854ca43b6839f9047ec44900563435e0067584c93864/torch_scatter-1.0.4.tar.gz#sha256=ec004d687e47da9d5477407849d815629fc8b571ee87aeeebf6af8ed6f16defc (from https://pypi.org/simple/torch-scatter/), version: 1.0.4
    Found link https://files.pythonhosted.org/packages/2f/97/c50a6aeaedc6924180c6f5810d2a7405ce11aa9b82ba4284badad549d665/torch_scatter-1.1.0.tar.gz#sha256=e534cc2ecb2f9d9b559b1513cd411737d26ea5585d1d65ff571fec55f42a49de (from https://pypi.org/simple/torch-scatter/), version: 1.1.0
    Found link https://files.pythonhosted.org/packages/91/5f/eb1d3ef3810cb1165859d40db4d9ee6d7f1dfef97d7e5c34010055f43d95/torch_scatter-1.1.1.tar.gz#sha256=9db7f2c0a5cddf6cfde633e33db7c2c94eaab163e9f8edb46460d6414cc97917 (from https://pypi.org/simple/torch-scatter/), version: 1.1.1
    Found link https://files.pythonhosted.org/packages/d4/83/67eeea00c2db1959e2ff95d8680dbd756977bfab254bda8658f09dc3bc11/torch_scatter-1.1.2.tar.gz#sha256=766c2476f5da5ffc25fa8e249ccf50f594031cdce3922abb23559e8e3b14337a (from https://pypi.org/simple/torch-scatter/), version: 1.1.2
    Found link https://files.pythonhosted.org/packages/07/c0/f7ac424496f4a3bcb31aa993fba29077a6d42fc2624c66e90b58a566a98e/torch_scatter-1.2.0.tar.gz#sha256=3a0259105d07d264c740eec8e4267260a5c144cf55472abd26022fff4fd73281 (from https://pypi.org/simple/torch-scatter/), version: 1.2.0
    Found link https://files.pythonhosted.org/packages/24/b7/680c3b392a4b55a0ebfb480aabb0d5c188e94bb21790104175c8cd614947/torch_scatter-1.3.0.tar.gz#sha256=bf7d561b8ef12b39a99f5797c90b989a0ce2c3ee4de74dff3b170f2d8566e1d4 (from https://pypi.org/simple/torch-scatter/), version: 1.3.0
    Found link https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec (from https://pypi.org/simple/torch-scatter/), version: 1.3.1
    Using version 1.3.1 (newest of versions: 0.3.0, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1)
    Created temporary directory: /tmp/pip-unpack-j6jrnevc
    Starting new HTTPS connection (1): files.pythonhosted.org:443
    https://files.pythonhosted.org:443 "GET /packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz HTTP/1.1" 200 12787
    Downloading https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz
    Downloading from URL https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec (from https://pypi.org/simple/torch-scatter/)
    Added torch-scatter from https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec to build tracker '/tmp/pip-req-tracker-756yuiai'
    Running setup.py (path:/tmp/pip-install-8z4jmdcj/torch-scatter/setup.py) egg_info for package torch-scatter
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/torch_scatter.egg-info
    writing pip-egg-info/torch_scatter.egg-info/PKG-INFO
    writing dependency_links to pip-egg-info/torch_scatter.egg-info/dependency_links.txt
    writing top-level names to pip-egg-info/torch_scatter.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/torch_scatter.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/torch_scatter.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/torch_scatter.egg-info/SOURCES.txt'
    Source in /tmp/pip-install-8z4jmdcj/torch-scatter has version 1.3.1, which satisfies requirement torch-scatter from https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec
    Removed torch-scatter from https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec from build tracker '/tmp/pip-req-tracker-756yuiai'
    Building wheels for collected packages: torch-scatter
    Created temporary directory: /tmp/pip-wheel-hu2op3fx
    Building wheel for torch-scatter (setup.py) ... Destination directory: /tmp/pip-wheel-hu2op3fx
    Running command /raid/baoke/anaconda3/envs/open-mmlab/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-8z4jmdcj/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 /tmp/pip-wheel-hu2op3fx --python-tag cp37
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/add.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/mul.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/std.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/div.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/__init__.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/max.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/mean.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/min.py -> build/lib.linux-x86_64-3.7/torch_scatter
    copying torch_scatter/sub.py -> build/lib.linux-x86_64-3.7/torch_scatter
    creating build/lib.linux-x86_64-3.7/test
    copying test/test_max_min.py -> build/lib.linux-x86_64-3.7/test
    copying test/test_multi_gpu.py -> build/lib.linux-x86_64-3.7/test
    copying test/test_std.py -> build/lib.linux-x86_64-3.7/test
    copying test/__init__.py -> build/lib.linux-x86_64-3.7/test
    copying test/test_forward.py -> build/lib.linux-x86_64-3.7/test
    copying test/utils.py -> build/lib.linux-x86_64-3.7/test
    copying test/test_backward.py -> build/lib.linux-x86_64-3.7/test
    creating build/lib.linux-x86_64-3.7/torch_scatter/utils
    copying torch_scatter/utils/__init__.py -> build/lib.linux-x86_64-3.7/torch_scatter/utils
    copying torch_scatter/utils/ext.py -> build/lib.linux-x86_64-3.7/torch_scatter/utils
    copying torch_scatter/utils/gen.py -> build/lib.linux-x86_64-3.7/torch_scatter/utils
    running build_ext
    building 'torch_scatter.scatter_cpu' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/cpu
    gcc -pthread -B /raid/baoke/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/raid/baoke/anaconda3/envs/open-mmlab/include/python3.7m -c cpu/scatter.cpp -o build/temp.linux-x86_64-3.7/cpu/scatter.o -Wno-unused-variable -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=scatter_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    g++ -pthread -shared -B /raid/baoke/anaconda3/envs/open-mmlab/compiler_compat -L/raid/baoke/anaconda3/envs/open-mmlab/lib -Wl,-rpath=/raid/baoke/anaconda3/envs/open-mmlab/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cpu/scatter.o -o build/lib.linux-x86_64-3.7/torch_scatter/scatter_cpu.cpython-37m-x86_64-linux-gnu.so
    building 'torch_scatter.scatter_cuda' extension
    creating build/temp.linux-x86_64-3.7/cuda
    gcc -pthread -B /raid/baoke/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/raid/baoke/anaconda3/envs/open-mmlab/include/python3.7m -c cuda/scatter.cpp -o build/temp.linux-x86_64-3.7/cuda/scatter.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=scatter_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    /usr/local/cuda/bin/nvcc -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/raid/baoke/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/raid/baoke/anaconda3/envs/open-mmlab/include/python3.7m -c cuda/scatter_kernel.cu -o build/temp.linux-x86_64-3.7/cuda/scatter_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=scatter_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
    g++ -pthread -shared -B /raid/baoke/anaconda3/envs/open-mmlab/compiler_compat -L/raid/baoke/anaconda3/envs/open-mmlab/lib -Wl,-rpath=/raid/baoke/anaconda3/envs/open-mmlab/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cuda/scatter.o build/temp.linux-x86_64-3.7/cuda/scatter_kernel.o -L/usr/local/cuda/lib64 -lcudart -o build/lib.linux-x86_64-3.7/torch_scatter/scatter_cuda.cpython-37m-x86_64-linux-gnu.so
    installing to build/bdist.linux-x86_64/wheel
    running install
    running install_lib
    creating build/bdist.linux-x86_64
    creating build/bdist.linux-x86_64/wheel
    creating build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/add.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/mul.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/std.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/scatter_cpu.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/torch_scatter
    creating build/bdist.linux-x86_64/wheel/torch_scatter/utils
    copying build/lib.linux-x86_64-3.7/torch_scatter/utils/__init__.py -> build/bdist.linux-x86_64/wheel/torch_scatter/utils
    copying build/lib.linux-x86_64-3.7/torch_scatter/utils/ext.py -> build/bdist.linux-x86_64/wheel/torch_scatter/utils
    copying build/lib.linux-x86_64-3.7/torch_scatter/utils/gen.py -> build/bdist.linux-x86_64/wheel/torch_scatter/utils
    copying build/lib.linux-x86_64-3.7/torch_scatter/div.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/__init__.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/max.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/mean.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/min.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/sub.py -> build/bdist.linux-x86_64/wheel/torch_scatter
    copying build/lib.linux-x86_64-3.7/torch_scatter/scatter_cuda.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/torch_scatter
    creating build/bdist.linux-x86_64/wheel/test
    copying build/lib.linux-x86_64-3.7/test/test_max_min.py -> build/bdist.linux-x86_64/wheel/test
    copying build/lib.linux-x86_64-3.7/test/test_multi_gpu.py -> build/bdist.linux-x86_64/wheel/test
    copying build/lib.linux-x86_64-3.7/test/test_std.py -> build/bdist.linux-x86_64/wheel/test
    copying build/lib.linux-x86_64-3.7/test/__init__.py -> build/bdist.linux-x86_64/wheel/test
    copying build/lib.linux-x86_64-3.7/test/test_forward.py -> build/bdist.linux-x86_64/wheel/test
    copying build/lib.linux-x86_64-3.7/test/utils.py -> build/bdist.linux-x86_64/wheel/test
    copying build/lib.linux-x86_64-3.7/test/test_backward.py -> build/bdist.linux-x86_64/wheel/test
    running install_egg_info
    running egg_info
    writing torch_scatter.egg-info/PKG-INFO
    writing dependency_links to torch_scatter.egg-info/dependency_links.txt
    writing top-level names to torch_scatter.egg-info/top_level.txt
    reading manifest file 'torch_scatter.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'torch_scatter.egg-info/SOURCES.txt'
    Copying torch_scatter.egg-info to build/bdist.linux-x86_64/wheel/torch_scatter-1.3.1-py3.7.egg-info
    running install_scripts
    adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
    creating build/bdist.linux-x86_64/wheel/torch_scatter-1.3.1.dist-info/WHEEL
    creating '/tmp/pip-wheel-hu2op3fx/torch_scatter-1.3.1-cp37-cp37m-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
    adding 'test/__init__.py'
    adding 'test/test_backward.py'
    adding 'test/test_forward.py'
    adding 'test/test_max_min.py'
    adding 'test/test_multi_gpu.py'
    adding 'test/test_std.py'
    adding 'test/utils.py'
    adding 'torch_scatter/__init__.py'
    adding 'torch_scatter/add.py'
    adding 'torch_scatter/div.py'
    adding 'torch_scatter/max.py'
    adding 'torch_scatter/mean.py'
    adding 'torch_scatter/min.py'
    adding 'torch_scatter/mul.py'
    adding 'torch_scatter/scatter_cpu.cpython-37m-x86_64-linux-gnu.so'
    adding 'torch_scatter/scatter_cuda.cpython-37m-x86_64-linux-gnu.so'
    adding 'torch_scatter/std.py'
    adding 'torch_scatter/sub.py'
    adding 'torch_scatter/utils/__init__.py'
    adding 'torch_scatter/utils/ext.py'
    adding 'torch_scatter/utils/gen.py'
    adding 'torch_scatter-1.3.1.dist-info/LICENSE'
    adding 'torch_scatter-1.3.1.dist-info/METADATA'
    adding 'torch_scatter-1.3.1.dist-info/WHEEL'
    adding 'torch_scatter-1.3.1.dist-info/top_level.txt'
    adding 'torch_scatter-1.3.1.dist-info/RECORD'
    removing build/bdist.linux-x86_64/wheel
    done
    Stored in directory: /tmp/pip-ephem-wheel-cache-0x7o1yj_/wheels/7f/21/0b/c42fa9353ceec5e87464599e470a03e4250ec667b4a392fa7d
    Removing source in /tmp/pip-install-8z4jmdcj/torch-scatter
    Successfully built torch-scatter
    Installing collected packages: torch-scatter

Successfully installed torch-scatter-1.3.1
Cleaning up...
Removed build tracker '/tmp/pip-req-tracker-756yuiai'
1 location(s) to search for versions of pip:

Starting new HTTPS connection (1): pypi.org:443

the rest information is all links , so I don't paste here

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zc-alexfan picture zc-alexfan  Â·  3Comments

zetayue picture zetayue  Â·  3Comments

SaschaStenger picture SaschaStenger  Â·  4Comments

raeidsaqur picture raeidsaqur  Â·  4Comments

Raverss picture Raverss  Â·  3Comments