当前位置:网站首页>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
边栏推荐
- Machine learning -- census data analysis
- Pytorch基础
- Data dictionary in C #
- Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
- Ansible practical series I_ introduction
- Armv8-a programming guide MMU (2)
- 解决:log4j:WARN Please initialize the log4j system properly.
- Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
- Copie maître - esclave MySQL, séparation lecture - écriture
- 项目实战-后台员工信息管理(增删改查登录与退出)
猜你喜欢
![[recommended by bloggers] background management system of SSM framework (with source code)](/img/7f/a6b7a8663a2e410520df75fed368e2.png)
[recommended by bloggers] background management system of SSM framework (with source code)

Postman Interface Association

AI benchmark V5 ranking

Install mongdb tutorial and redis tutorial under Windows
![[Thesis Writing] how to write function description of jsp online examination system](/img/f8/13144e0febf4a576bbcc3290192079.jpg)
[Thesis Writing] how to write function description of jsp online examination system

csdn-Markdown编辑器

Classes in C #

Did you forget to register or load this tag 报错解决方法

Idea import / export settings file

【博主推荐】asp.net WebService 后台数据API JSON(附源码)
随机推荐
JDBC原理
01项目需求分析 (点餐系统)
Invalid global search in idea/pychar, etc. (win10)
Error reporting solution - io UnsupportedOperation: can‘t do nonzero end-relative seeks
Install mysql5.5 and mysql8.0 under windows at the same time
虚拟机Ping通主机,主机Ping不通虚拟机
Mysql 其他主机无法连接本地数据库
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
QT creator runs the Valgrind tool on external applications
记某公司面试算法题:查找一个有序数组某个数字出现的次数
LeetCode #461 汉明距离
QT creator support platform
Test objects involved in safety test
Basic use of redis
Install MySQL for Ubuntu 20.04
软件测试-面试题分享
MySQL主从复制、读写分离
Database advanced learning notes -- SQL statement
[recommended by bloggers] background management system of SSM framework (with source code)
02-项目实战之后台员工信息管理