当前位置:网站首页>ImportError: libmysqlclient. so. 20: Cannot open shared object file: no such file or directory solution

ImportError: libmysqlclient. so. 20: Cannot open shared object file: no such file or directory solution

2022-07-06 11:22:00 wx5caecf2ed0645


>>> import MySQLdb

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in <module>

  File "build/bdist.linux-x86_64/egg/_mysql.py", line 7, in <module>

  File "build/bdist.linux-x86_64/egg/_mysql.py", line 6, in __bootstrap__

ImportError: libmysqlclient.so.20: cannot open shared object file: No such file or directory


terms of settlement :

To /opt/mysql/lib/ Under the table of contents , find  libmysqlclient.so.20.1.0 file , Then make a soft connection :

ln -s /opt/mysql/lib/libmysqlclient.so.20.1.0 /usr/lib64/libmysqlclient.so.20



原网站

版权声明
本文为[wx5caecf2ed0645]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131626548666.html