Python 3 ImportError: No module named 'ConfigParser'

前端 未结 18 2331
半阙折子戏
半阙折子戏 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:33

    I was having the same problem. Turns out, I needed to install python3 devel on my centos. First, you need to search for the package that is compatible with your system.

    yum search python3 | grep devel
    

    Then, install the package as:

    yum install -y python3-devel.x86_64
    

    Then, install mysqlclient from pip

    pip install mysqlclient
    

提交回复
热议问题