Python error: command '…\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2

后端 未结 4 686
攒了一身酷
攒了一身酷 2020-12-15 19:14

I have some problems with python 3 module installing. I\'m trying to install mysql using pip :

python -m pip install mysql

for python 3.4.4

4条回答
  •  猫巷女王i
    2020-12-15 19:54

    I had this problem and I can solve it in PyCharm (version: 2019.2) as follow:

    1. update the pip version in pycharm (at this time the latest version of pip is 20.0.2):

      1-1- Open project settings (File > Settings...) (preferences on Mac)

      1-2- Project > Project Interpreter

      1-3- Press the + button

      1-4- Type pip in the top search box

      1-5- In the lower right corner choose specify version and ensure using latest version

      1-6- press Install Package button

    you can also find out the current version of pip through cmd in windows by this command: pip -V and then update pip by this command: pip install --upgrade pip

    2- Go to File > Settings... > Project > Project:Interpreter and update pip by clicking on upgrade button as the following picture (click on the small upward arrow at the right sidebar): enter image description here

    3- Like the first step, install latest version of matplotlib (at this time its latest version is 3.2)

提交回复
热议问题