본문 바로가기

오류해결

torch-scatter, torch-sparse, torch-geometric install error

pip install --no-index torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.1+cu101.html
pip install --no-index torch-sparse -f https://data.pyg.org/whl/torch-1.8.1+cu101.html
pip install torch-geometric

 

--no-index를 붙여주자. 뒤의 torch-1.8.1+cu101은 맞는 버전으로 변경 (아래 코드로 확인)

 

python -c "import torch; print(torch.__version__)"
python -c "import torch; print(torch.version.cuda)"

 

https://github.com/pyg-team/pytorch_geometric/issues/2381

 

Error while installing PyTorch Scatter · Issue #2381 · pyg-team/pytorch_geometric

📚 Installation I am getting the error "cl : Command line error D8003 : missing source filename" while installing PyTorch Scatter. I am using the command "pip install torch-scatter -f...

github.com

 

 

 

AttributeError: 'NoneType' object has no attribute 'origin' 에러가 발생하면 아래와 같이 uninstall 후 위와 같은 방식으로 install 진행

 

pip uninstall torch-scatter
pip uninstall torch-sparse
pip uninstall torch-cluster
pip uninstall torch-spline-conv
pip uninstall torch-geometric

 

https://github.com/pyg-team/pytorch_geometric/issues/2429#issuecomment-826060848

 

AttributeError: 'NoneType' object has no attribute 'origin' · Issue #2429 · pyg-team/pytorch_geometric

📚 Installation Traceback (most recent call last): File "/home/shelly/bourne/reimp_paper/MTAG-main/test/t1.py", line 24, in import torch_sparse File "/home/shelly/anaconda3/envs/pyt/l...

github.com