pip install mysql-python报错:ModuleNotFoundError: No module named ‘ConfigParser‘

在尝试使用pip安装mysql-python时遇到ModuleNotFoundError:No module named 'ConfigParser'的问题。原因是Python 3.x中,ConfigParser模块已被重命名为configparser。解决方案是将代码中的ConfigParser.py替换为configparser.py,然后重新安装即可成功。
摘要由CSDN通过智能技术生成
  • 报错信息:
~sudo pip3 install mysql-python
Password:
WARNING: The directory '/Users/tangbincheng/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting mysql-python
  Downloading MySQL-python-1.2.5.zip (108 kB)
     |████████████████████████████████| 108 kB 20 kB/s
    ERROR: Command errored out with exit status 1:
     command: /Users/tangbincheng/.pyenv/versions/3.6.0/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值