error: command 'x86_64-linux-gnu-gcc' when installing mysqlclient

后端 未结 5 1188
北恋
北恋 2020-12-14 03:23

I installed django 1.8.5 in virtualenv and using python 3.4.3 the worked displayed the it works page when using sqlite

I wanted to use mysql and I\'

5条回答
  •  再見小時候
    2020-12-14 04:01

    You need to install python-dev:

    sudo apt-get install python-dev
    

    And, since you are using python3:

    sudo apt-get install python3-dev
    

    This command should help you.

    If you are using mac os you might try:

    brew update && brew rm python3 && brew install python3
    

    You need to brew has been installed already, otherwise you can install it. It is very useful for getting packages in Mac OS. http://brew.sh/

提交回复
热议问题