尝试运行“导入torchvision”时,显示以下错误-
ImportError: /home/jupyterlab/conda/envs/python/lib/python3.7/site-packages/torchvision/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E
这也没有帮助-!conda安装pytorch=1.11.0 torchvision=0.12.0 -c pytorch -y
1条答案
按热度按时间e0bqpujr1#
pip安装torchvision==0.4.1解决了这个问题