[PYTHON] Until torch-geometric can be used only with Windows (or Mac) CPU

To be able to use torch-geometric with cpu of Windows (or Mac)

torch-geometricNote that I'm addicted to various things when installing to use on windows that only has cpu loaded, not on google colab.

Execution environment

In principle, if you do it this way, you can do it on a Mac.

Setup steps

install using conda

I used to use `conda install``` with ```Anaconda```, but it seems that only Linux can install with `conda install -c ostrokach-forge torch-geometric``` ( Reference: Torch Geometric :: Anaconda Cloud).

The method I was addicted to this time

PyTorch Forums[Pytorch and torch cpu version](https://discuss.pytorch.org/t/pytorch-and-torch-cpu-version/73020)According to



pip install torch-scatter==latest+cpu torch-sparse==latest+cpu pip install torch-cluster (optional) pip install torch-spline-conv (optional) python setup.py install or pip install torch-geometric


 It was written, but I'm still addicted to this.

### Solution

pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html pip install torch-scatter==latest+cpu torch-sparse==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.4.0.html pip install torch-cluster==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.4.0.html pip install torch-spline-conv==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.4.0.html pip install torch-geometric


 This will install everything. But even this is addictive. This is due to not being ``` torch-1.4.0```, so

pip install --upgrade torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

 (If you have installed ``` torch-1.4.0``` from the beginning, you can do it).

 Now you can run `` `torch-geometric``` on Jupyter running on a CPU on Windows! !!

## reference
https://discuss.pytorch.org/t/pytorch-and-torch-cpu-version/73020/2
https://anaconda.org/ostrokach-forge/torch-geometric


Recommended Posts

Until torch-geometric can be used only with Windows (or Mac) CPU
Until youtube-dl can be used with Synology (DS120j)
File types that can be used with Go
[Python] Building an environment for competitive programming with Atom (input () can be used!) [Mac]
Japanese can be used with Python in Docker environment
Python knowledge notes that can be used with AtCoder
pd.tseries.offsets.DateOffset can be quite slow if not used with caution
SSD 1306 OLED can be used with Raspberry Pi + python (Note)
requirements.txt can be commented out with #
Acoustic signal processing module that can be used with Python-Sounddevice ASIO [Application]
Hide the warning that zsh can be used by default on Mac
Mathematical optimization that can be used for free work with Python + PuLP
Acoustic signal processing module that can be used with Python-Sounddevice ASIO [Basic]
If you want to make a Windows application (exe) that can be actually used now using only Python