当前位置:网站首页>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
边栏推荐
- L2-004 这是二叉搜索树吗? (25 分)
- 【博主推荐】C# Winform定时发送邮箱(附源码)
- 连接MySQL数据库出现错误:2059 - authentication plugin ‘caching_sha2_password‘的解决方法
- 学习问题1:127.0.0.1拒绝了我们的访问
- [recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
- Navicat 導出錶生成PDM文件
- How to build a new project for keil5mdk (with super detailed drawings)
- There are three iPhone se 2022 models in the Eurasian Economic Commission database
- Windows下安装MongDB教程、Redis教程
- 02 staff information management after the actual project
猜你喜欢
QT creator shape
Leetcode 461 Hamming distance
Did you forget to register or load this tag 报错解决方法
学习问题1:127.0.0.1拒绝了我们的访问
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
AcWing 242. A simple integer problem (tree array + difference)
QT creator design user interface
解决安装Failed building wheel for pillow
Swagger、Yapi接口管理服务_SE
自动机器学习框架介绍与使用(flaml、h2o)
随机推荐
QT creator support platform
安全测试涉及的测试对象
Asp access Shaoxing tourism graduation design website
Armv8-a programming guide MMU (2)
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
LeetCode #461 汉明距离
Remember a company interview question: merge ordered arrays
Introduction and use of automatic machine learning framework (flaml, H2O)
一键提取pdf中的表格
JDBC原理
How to configure flymcu (STM32 serial port download software) is shown in super detail
Copie maître - esclave MySQL, séparation lecture - écriture
Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.
SSM integrated notes easy to understand version
Solution: log4j:warn please initialize the log4j system properly
1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration
[download app for free]ineukernel OCR image data recognition and acquisition principle and product application
AI benchmark V5 ranking
Principes JDBC