Window7 python2.7 拋錯ImportError No module named mysql.connector
錯誤:
ImportError No module named mysql.connector
1.下載mysql-connector-python-2.2.2.zip 解壓 如 C:\Users\jpwu\Desktop\mysql-connector-python-2.2.2
2.開啟cmd
cd /d C:\Users\jpwu\Desktop\mysql-connector-python-2.2.2
python setup.py install
3.驗證
python
>> import mysql.connector
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2132592/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ImportError: No module named `defusedxml`ImportErrorXML
- ImportError: No module named yamlImportErrorYAML
- ImportError: No module named utilsImportError
- ImportError: No module named cElementTreeImportError
- ImportError: No module named torchvisionImportError
- ImportError: No module named builtinsImportErrorUI
- pip安裝錯誤:ImportError: No module named 'pkg_resources'ImportError
- ImportError: No module named ‘torch‘ 解決方法ImportError
- ImportError:No module named SCons.ScriptImportError
- ImportError: No module named setuptools 解決方法ImportError
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP
- pyecharts安裝後import錯誤 ImportError: No module named 'pyecharts_snapshot'EchartsImportError
- ImportError: No module named thrift.Thrift問題解決ImportError
- media-dispatcher啟動時報ImportError: No module named application.processImportErrorAPP
- Linux:Python報錯:No module named MySQLdbLinuxPythonMySql
- ImportError: No module named flask 導包失敗,Python3 重新安裝 Flask 模組ImportErrorFlaskPython
- pycharm環境,命令列執行提示:ImportError: No module named xxx 解決方法PyCharm命令列ImportError
- ModuleNotFoundError: No module named 'sqlite'ErrorSQLite
- ModuleNotFoundError: No module named 'pyttsx'ErrorTTS
- ModuleNotFoundError: No module named ‘Crypto‘ ‘Cryptodome‘Error
- linux已經安裝bert4keras但出現ImportError: No module named ‘bert4keras‘LinuxKerasImportError
- ModuleNotFoundError: No module named 'phkit.pinyin'Error
- No module named MYSQLdb 問題解決MySql
- ModuleNotFoundError: No module named ‘DBUtils‘解決辦法Error
- ModuleNotFoundError: No module named ‘cv2’——(版本問題)Error
- pip成功安裝gdal的whl檔案後,PyCharm仍報錯No module named ‘osgeo’PyCharm
- python ModuleNotFoundError: No module named ‘requests‘ 的 解決方案PythonError
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- 記錄安裝conda install Python庫時報No module named ‘tensorflow‘錯誤Python
- 解決已安裝opencv但仍提示報錯“no module named cv2“問題OpenCV
- 使用PyCharm時顯示的 No module named ‘xxx’PyCharm
- yum依賴python2環境-"No module named urlgrabber"Python
- Ubuntu20.04安裝LabelImg 以及出現(ModuleNotFoundError: No module named libs.resources)錯誤UbuntuError
- 解決Python找不到ssl模組問題 No module named _sslPython
- Scrapy學習中解決No module named tutorial.items問題
- ModuleNotFoundError: No module named ‘matplotlib‘ 一系列解決辦法Error
- 問題結局辦法:Error loading psycopg2 module: No module named ‘psycopg2‘Error
- 使用Pycharm出現No module named Test_01_module_a less... (Ctrl+F1) This inspection detects names that shPyCharm