'pip install MySQL-python' fails with 'IndexError'

前端 未结 4 1872
予麋鹿
予麋鹿 2020-12-03 03:41

I\'m on OSX El Capitan, using Python 2.7 (Anaconda). Launching the command pip install MySQL-python yields:

Collecting MySQL-python
  Using cach         


        
4条回答
  •  暖寄归人
    2020-12-03 04:10

    I got the same error while installing pip install MySql-python.

    Then, I had installed libmysqlclient-dev using the command:

    sudo apt install libmysqlclient-dev

    After installing it, I tried again and pip install MySql-python and it worked for me.

提交回复
热议问题