Install torch-scatter with PyTorch 1.7

environment

I made a note in a hurry because I succeeded in a hurry.

$ pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.7.0.html
Looking in links: https://pytorch-geometric.com/whl/torch-1.7.0.html
Collecting torch-scatter
  Downloading https://pytorch-geometric.com/whl/torch-1.7.0/torch_scatter-2.0.5%2Bcu110-cp36-cp36m-win_amd64.whl (2.4
MB)
     |████████████████████████████████| 2.4 MB 544 kB/s
Installing collected packages: torch-scatter
Successfully installed torch-scatter-2.0.5

But when I try to move it fails

$ python natura/bin/pytorch_sample.py
Traceback (most recent call last):
  File "natura/bin/pytorch_sample.py", line 9, in <module>
    from torch_scatter import scatter_max
  File "C:\Users\dff40\.conda\envs\pytorch04gpu\lib\site-packages\torch_scatter\__init__.py", line 12, in <module>
    library, [osp.dirname(__file__)]).origin)
  File "C:\Users\dff40\.conda\envs\pytorch04gpu\lib\site-packages\torch\_ops.py", line 105, in load_library
    ctypes.CDLL(path)
  File "C:\Users\dff40\.conda\envs\pytorch04gpu\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126]The specified module cannot be found.
(pytorch04gpu)

will not give up

The error content seems to be related to GPU. Maybe you should install the CPU version. So uninstall and run

$ pip install torch-scatter==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.7.0.html
Looking in links: https://pytorch-geometric.com/whl/torch-1.7.0.html
Collecting torch-scatter==latest+cpu
  Downloading https://pytorch-geometric.com/whl/torch-1.7.0/torch_scatter-latest%2Bcpu-cp36-cp36m-win_amd64.whl (289 k
B)
     |████████████████████████████████| 289 kB 364 kB/s
Installing collected packages: torch-scatter
Successfully installed torch-scatter-2.0.5

With this, when I moved the previous command, it worked safely!

Recommended Posts

Install torch-scatter with PyTorch 1.7
Install pytorch
Install PyTorch
Play with PyTorch
Cross-validation with PyTorch
Beginning with PyTorch
Use RTX 3090 with PyTorch
Error with pip install
Install Voluptuous with Python 2.5
Python PyTorch install tips
Install python with pyenv
Install scikit.learn with pip
Install Python environment with Anaconda
Install Keras (used with Anaconda)
Try an autoencoder with Pytorch
When moss with pip install
Specify version with conda install
Try implementing XOR with PyTorch
Install external libraries with Python
Install github repository with pip
Implement PyTorch + GPU with Docker
Prediction of Nikkei 225 with Pytorch 2
Machine learning Minesweeper with PyTorch
AWS Lambda with PyTorch [Lambda import]
Prediction of Nikkei 225 with Pytorch
Perform Stratified Split with PyTorch
I made Word2Vec with Pytorch
Install Python 2.7.9 and Python 3.4.x with pip.
[PyTorch Tutorial ⑤] Learning PyTorch with Examples (Part 2)
What to do with Magics install
I can't install python3 with pyenv-vertualenv
Learn with PyTorch Graph Convolutional Networks
Permission denied with pip install pyopenssl
How to install python-pip with ubuntu20.04LTS
Install Pytorch on Blender 2.90 python on Windows
I implemented Attention Seq2Seq with PyTorch
Easy to install pyspark with conda
Install the Python plugin with Netbeans 8.0.2
Install the data files with setup.py
Prediction of Nikkei 225 with Pytorch ~ Intermission ~
Manipulate colors with pip install color
Unable to install Python with pyenv
How to Data Augmentation with PyTorch
Install pyStruct on MacOSX10.11 with macports
[PyTorch Tutorial ⑤] Learning PyTorch with Examples (Part 1)
How to install mysql-connector with pip3
pytorch @ python3.8 environment construction with pipenv
Install python2.x on catalina with pyenv
Wget fails during install with pyenv
Install python with mac vs code
How to install Anaconda with pyenv
Achieve pytorch reflection padding with Tensorflow
[Python Windows] pip install with Python version
Sine wave prediction (regression) with Pytorch
SSL certificate related with pip install? Error
Multi-class, multi-label classification of images with pytorch
I implemented Shake-Shake Regularization (ShakeNet) with PyTorch
Install Python as a Framework with pyenv
How to install DLIB with 2020 / CUDA enabled
I want to pip install with PythonAnywhere
Install by specifying the version with pip