mysql-python安裝時Environment Error: mysql_config not found
在安裝 mysql-python時,出現:
Collecting MySQL-python
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip (108kB)
100% |████████████████████████████████| 112kB 2.1MB/s
Complete output from command python setup.py egg_info:
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-vkUfD6/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
可能是因為沒有安裝:libmysqlclient-dev
執行以下命令安裝:
sudo apt-get install python-dev libmysqlclient-dev
安裝後再次執行安裝 mysql-python命令:
pip install MySQL-python
成功安裝:
參考來源:mysql-python安裝時EnvironmentError: mysql_config not found
相關文章
- 安裝mysqlclient報OSError: mysql_config not foundMySqlclientError
- <checking for mysql_config not found>MySql
- Mac 安裝MySQL-pythonMacMySqlPython
- Centos 安裝 MySQL-pythonCentOSMySqlPython
- mac os x EnvironmentError: mysql_config not foundMacErrorMySql
- 安裝mysql-python注意事項MySqlPython
- Ubuntu下安裝MySQL-python教程UbuntuMySqlPython
- error: externally-managed-environmentError
- 安裝 ESXi 出現錯誤 ERROR 1962: No operating system foundError
- MAC下安裝mysql-python方法(親測可用)MacMySqlPython
- ERROR FIX:- rpmdb: unable to join the environmentError
- Mac環境安裝mysqlclient報錯not fund mysql_configMacMySqlclient
- Linux解決MySQL-python安裝失敗問題LinuxMySqlPython
- PVE(Proxmox Virtual Environment) 安裝配置iStoreOS筆記筆記
- Error 15: File not found for RedhatErrorRedhat
- zsh: command not found: bee bee工具安裝
- 安裝CenOS出現“The CenOS disc was not found in any of ....”
- An unexpected error has been detected by Java Runtime EnvironmentErrorJava
- 在python中使用mysql,須要安裝mysql-python依賴包,PythonMySql
- Error ./bin/my_print_defaults: not foundError
- 照著官網來安裝openstack pike之environment設定
- 編譯安裝php的openssl元件時遇到 libssl not found解決辦法編譯PHP元件
- golang原始碼安裝時fatal error: MSpanList_Insert錯誤Golang原始碼Error
- 安裝網站出現404 not found如何解決?網站
- composer安裝完成輸入命令報錯:Fatal error: Class ‘Phar‘ not found in C:\\ProgramData\\ComposerSetup\\bin\\compoError
- ERROR in Entry module not found Error Can't resolve 'babel' in ' UseErrorBabel
- Oracle安裝報錯syntax errorOracleError
- ERROR: No abbreviations files found in ...nonbreaking_prefixesError
- Session 'app': Error Launching activity(安裝包安裝失敗)SessionAPPError
- Flutter 安裝搭建報錯 Android sdkmanager tool not foundFlutterAndroid
- cgo: C compiler "gcc" not found 報錯安裝gccGoCompileGC
- AIX 6.1安裝apache報no acceptable C compiler foundAIApacheCompile
- 關於java.lang.Error: Probable fatal error:No fonts found問題JavaError
- [PM2][ERROR] Process XXX not foundError
- Windows下pip安裝scipy報錯no lapack/blas resources foundWindows
- 安裝Qt過程中出現g++: command not foundQT
- Flutter在iOS裝置執行報錯fatal error: 'Flutter/Flutter.h' file not foundFlutteriOSError
- InstallShield安裝時出現“1152:error extracting"的解決方案Error