Python 3 ImportError: No module named 'ConfigParser'

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

    Kindly to see what is /usr/bin/python pointing to

    if it is pointing to python3 or higher change to python2.7

    This should solve the issue.

    I was getting install error for all the python packages. Abe Karplus's solution & discussion gave me the hint as to what could be the problem. Then I recalled that I had manually changed the /usr/bin/python from python2.7 to /usr/bin/python3.5, which actually was causing the issue. Once I reverted the same. It got solved.

提交回复
热议问题