バーチャルボックスのcentos7から、MySQL-pythonをインストールしています。
[pip install MySQL-python]コマンドを実施しました。
以下のような表示が出ました。
Collecting MySQL-python Using cached MySQL-python-1.2.5.zip (108 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [8 lines of output] Traceback (most recent call last): File "<string>", line 36, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-8jtxxago/mysql-python_ab231aa61a9e4944bd093d78e283e7ad/setup.py", line 13, in <module> from setup_posix import get_config File "/tmp/pip-install-8jtxxago/mysql-python_ab231aa61a9e4944bd093d78e283e7ad/setup_posix.py", line 2, in <module> from ConfigParser import SafeConfigParser ModuleNotFoundError: No module named 'ConfigParser' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output.
対処方法として何か分かりますか。
回答1件
あなたの回答
tips
プレビュー