0
我已經安裝libssl1.1Mysql的導入錯誤2.7
import MySQLdb
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: /usr/local/lib/python2.7/dist-packages/_mysql.so: undefined symbol: OPENSSL_add_all_algorithms_noconf
重現步驟後,會見了的mysql 1.3.10一個問題:
- 在Ubuntu的14.04機器
Python 2.7.6
- 回聲 '的deb http://archive.mariadb.org/mariadb-10.0.29/repo/ubuntu/ 信賴的主'> /etc/apt/sources.list.d/mariadb.list
- apt-get的安裝-f --allow --yes,未經身份驗證的MariaDB的服務器
- 以root身份登錄並顯示默認的數據庫成功
- 附加的apt-庫PPA:的Ondrej/PHP
- apt-get的更新
- 的apt-get安裝 的libssl-dev的(版本:1.1.0f-2〜ubuntu14.04.1 + DEB .sury.org + 1)
- pip安裝mysqlclient
- 蟒蛇-c 「進口MySQLdb的」
https://stackoverflow.com/questions/40587558/error-installing-my sql-python-library-not-found-for-lssl – StefanE