我是flask上的python新手,當我嘗試通過在終端中輸入以下命令來安裝mysql-python時pip3 install mysql-python它顯示以下錯誤:Collecting mysql-python Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-4nev4id4/mysql-python/setup.py", line 13, in <module> from setup_posix import get_config File "/tmp/pip-install-4nev4id4/mysql-python/setup_posix.py", line 2, in <module> from ConfigParser import SafeConfigParser ModuleNotFoundError: No module named 'ConfigParser' ----------------------------------------Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-4nev4id4/mysql-python/然后我sudo apt install default-libmysqlclient-dev在終端中使用這個命令,我在 stackoverflow 上檢查過很多人都建議過這個命令 。然后我重試安裝 mysql-python 但它也顯示了同樣的錯誤,任何人都可以幫助我。
pip3 install mysql-python 在 /tmp/pip-install-
慕尼黑8549860
2021-09-14 20:39:17