Problem when installing torch-scatter (Windows 10)
See original GitHub issue📚 Installation
Environment
- OS: Windows 10
- Python version: 3.6
- PyTorch version: 1.2.0
- CUDA/cuDNN version: 10.1/7.6.1
- GCC version: 8.2.0
- How did you try to install PyTorch Geometric and its extensions (pip, source): pip
- Any other relevant information: E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1379): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1437): note: 参见对正在编译的类 模板 实例化“ska::flat_hash_map<K,V,H,E,A>”的引用 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1383): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1391): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1473): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1510): note: 参见对正在编译的类 模板 实例化“ska::flat_hash_set<T,H,E,A>”的引用 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1478): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1482): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1486): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型 E:/Anaconda3/envs/pytorch_geometric/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1490): error C3203: “templated_iterator”: 未专用化的 类 模板 不能用作 模板 变量,该变量属于 模板 参数“_Ty1”,应为 real 类型
error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe’ failed with exit status 2
Command “E:\Anaconda3_Python3.5\envs\pytorch_geometric\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\SY\AppData\Local\Temp\pip-build-4f7gxr1x\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\SY\AppData\Local\Temp\pip-mln1dtov-record\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\SY\AppData\Local\Temp\pip-build-4f7gxr1x\torch-scatter\
Checklist
- [y] I followed the installation guide.
- [y] I cannot find my error message in the FAQ.
- [y] I set up CUDA correctly and can compile CUDA code via
nvcc
. - I have cloned the repository and tried a manual installation from source.
- I do have multiple CUDA versions on my machine.
- I checked if the official extension example runs on my machine.
- The offical extension example runs on my machine.
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Error while installing PyTorch Scatter · Issue #2381 - GitHub
I am using the command "pip install torch-scatter -f ... OS: Windows 10; Python version: 3.6.5; PyTorch version: 1.8.1; CUDA/cuDNN version: ...
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 >torch-scatter - Python Package Health Analysis - Snyk
The python package torch-scatter was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
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-sparse - PyPI
To install the binaries for PyTorch 1.12.0, simply run pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello everyone, I have successfully installed PYG on Windows10.
Windows10_x64 / Anaconda python3.7 / Pytorch1.2.0(cpu)
steps:
hello @syxd :
English reply:
perhaps i cannot help you. Although i installed pyg successfully on windows 10, but… my environment is different from you. (And my version is much older…) i will tell you something about my experience of installing pyg on windows, see more in my reply in issue #599 .
CPU Windows 10 (build 17763) Visual Studio 2019 (install msvc 14.0 compiler, and python 3(64-bit)(i.e. python 3.7)) Python 3.7 (in VS2019) PyTorch 1.1.0 (and PyTorch 1.2.0 also tested successfully)
GPU Windows 10 (build 17763) Visual Studio 2015 (install msvc 14.0 compiler) Python 3.6 (Anaconda) PyTorch 1.1.0 (CUDA 9.0) CUDA 9.0
PyG bucket (Pytorch Scatter, Pytorch Sparse, Pytorch Cluster, Pytorch Spline Conv and PyTorch Geometric) are installed mostly on Linux(e.g. Ubuntu), or macOS.(since the author is a macOS enthusiast) Installing on Microsoft Windows is relatively not that ??usual?? I wrote my experience of installing pyg bucket on Microsoft Windows, see here.
yours sincerely, @wmf1997
(NOTICING THAT YOU ARE USING CHINESE (SIMPLIFIED), I use Chinese to communicate with you) 简体中文回复:
你好~ 我是在Windows上安装成功过, 但是环境和方法可能和你的不相同. 所以… 我可能帮不上你… 抱歉…)
对于Windows上的安装, 我使用的环境是:
CPU Windows 10 (build 17763) Visual Studio 2019 (install msvc 14.0 compiler, and python 3(64-bit)(i.e. python 3.7)) Python 3.7 (in VS2019)
GPU Windows 10 (build 17763) Visual Studio 2015 (install msvc 14.0 compiler) Python 3.6 (Anaconda) CUDA 9.0
(另外, PyTorch Geometric全家桶(PyTorch Scatter, PyTorch Sparse, PyTorch Cluster, PyTorch Spline Conv, PyTorch Geometric)一般是在Linux(比如说, Ubuntu), 或者是macOS(作者是个果粉, 简介中可知)上安装, Windows上的安装感觉相对少一点… 我之前写了个不算是指南的指南, 参见这里)
此致 敬礼 @wmf1997
P.S. 要是有时间的话… (估计是没时间了…) 我想看下setup.py和setup.cfg文件, 这两个文件指示怎么编译(build)和安装(install)