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

后端 未结 4 676
攒了一身酷
攒了一身酷 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条回答
  •  天涯浪人
    2020-12-15 20:06

    I was trying to install Pycocotools into my environment. I had the same error.

    It got resolved by doing the following steps:

    1. Install Visual Studio 2019 which gives the paths C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe and C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe

    2. Go to Mask_RCNN, type cd Mask_RCNN

    3. In Anaconda Prompt, type pip install pycocotools

    4. Install Clone of COCO, type pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI

    You'll get the following: enter image description here

    1. Open Jupyter notebook by typing jupyter notebook

提交回复
热议问题