栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

torch/lib/libtorch

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

torch/lib/libtorch

Traceback (most recent call last):
  File "train.py", line 3, in
    import torch
  File "/home/aita/anaconda3/envs/proGCN2/lib/python3.6/site-packages/torch/__init__.py", line 190, in
    from torch._C import *
ImportError: /home/aita/anaconda3/envs/proGCN2/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack

Due to the keyboard issue, I would have to use English to explain the above bug.

The full bug is shown above in red color.

Reason:

Your current python version is too low.

Mine:                   Python 3.6.0,        Pytorch 1.7.0,            CUDA 11.0

Solution:

conda install python==3.6.2

Dont worry about the currently stored python version, the above command will overwirte the previsous python version. That command works perfectly well.

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/994380.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号