爱你酥饼「Large brick」 2022-03-19 01:48 采纳率: 33.3%
浏览 49
已结题

Mac 安装MySQL-Python报错,如何解决?


Collecting MySQL-python
  Using cached MySQL-python-1.2.5.zip (108 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status '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 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/dn/w45dbz5d1jgb1r71xfqz744r0000gn/T/pip-install-81evuevt/mysql-python_8dfb70a3c7fd4e22ad3de2b8cbf536bf/setup.py", line 13, in <module>
          from setup_posix import get_config
        File "/private/var/folders/dn/w45dbz5d1jgb1r71xfqz744r0000gn/T/pip-install-81evuevt/mysql-python_8dfb70a3c7fd4e22ad3de2b8cbf536bf/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.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

这个是怎么解决?

  • 写回答

2条回答 默认 最新

  • heianduck 2022-03-19 11:04
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 3月27日
  • 已采纳回答 3月19日
  • 创建了问题 3月19日

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog