1.pip install安装torch,默认安装的2.3.1版本,导致cuda用不了,运行报错
解决:直接去目录删除所有2.3。1相关的文件夹。然后使用指定版本安装
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
2.使用xlstm报错
mportError: cannot import name ‘packaging’ from ‘pkg_resources’ (/home/media/ExtHDD1/wuxi/conda/minicinda3/py310/lib/python3.10/site-packages/pkg_resources/init.py
解决:更新conda环境
conda upgrade -c anaconda setuptools
弄了一晚上,烦死了,不过终于解决了