ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory解决方法

1.apt-get update 

2.apt-get -y upgrade 

3.pip install python-opencv

4.apt-get install python-tk

5.apt-get install python-opencv -y --allow-unauthenticated

或者使用apt-file,流程如下:

apt-get update

apt-get install apt-file

apt-file update

apt-file search libgthread-2.0.so.0

 

若更新没权限,使用如下:

chmod 777 /tmp

apt-get update --allow-unauthenticated

 

你可能感兴趣的:(pytorch)