Python 3 ImportError: No module named 'ConfigParser'

前端 未结 18 2633
半阙折子戏
半阙折子戏 2020-11-22 12:52

I am trying to pip install the MySQL-python package, but I get an ImportError.

Jans-MacBook-Pro:~ jan$ /Library/Framew         


        
18条回答
  •  佛祖请我去吃肉
    2020-11-22 13:20

    I run kali linux- Rolling and I came across this problem ,when I tried running cupp.py in the terminal, after updating to python 3.6.0. After some research and trial I found that changing ConfigParser to configparser worked for me but then I came across another issue.

    config = configparser.configparser() AttributeError: module 'configparser' has no attribute 'configparser'

    After a bit more research I realised that for python 3 ConfigParser is changed to configparser but note that it has an attribute ConfigParser().

提交回复
热议问题