An error occurs when importing torchvision 0.3.0 with pytorch 1.1.0.
ImportError: myenv/lib/python3.7/site-packages/torchvision/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c107Warning4warnENS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
Uninstall each and reinstall. I don't know what's going on, but I solved it for the time being. The version is the one that suits you. Reference
$conda uninstall pytorch
$conda uninstall torchvision
$conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch
Recommended Posts