Python 3 ImportError: No module named 'ConfigParser'

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

    Try this solution which worked fine for me.

    Basically it's to reinstall/upgrade to latest version of mysql from brew, and then installing mysqlclient or MySQL-Python from global pip3 instead of virtualenv pip3.

    Then accessing the virtualenv and successfully install mysqlclient or MySQL-Python.

提交回复
热议问题