How to add a package to python in Visual Studio 2017

前端 未结 2 1787
孤街浪徒
孤街浪徒 2021-01-04 01:28

I just installed the new VS2017 Preview and imported a Python project. This project has many import statements but VS2017 does show error in some import packages like cv2, s

2条回答
  •  [愿得一人]
    2021-01-04 02:18

    I had same problem and i could get it working with visual studio 2017 python v3.6 using following instructions

    Install appropriate .whl file using this link (cpMN where you have Python M.N). contrib includes OpenCV-extra packages. For example, assuming you have Python 3.6, you might download **opencv_python-3.2.0+contrib-cp36-none-win_amd64.whl**

    link to download

    Then install it by running this command from installed folder

    pip install opencv_python-3*win_amd64.whl
    

提交回复
热议问题