How to install OpenCV on Windows and enable it for PyCharm without using the package manager

后端 未结 2 644
无人及你
无人及你 2020-12-03 02:11

I am trying to install and use OpenCV library for python development. I want to use it for PyCharm IDE. I am trying to do it without the package manager.

The environ

相关标签:
2条回答
  • 2020-12-03 02:47

    I finally figured out on how to solve this issue:

    Steps to follow:

    1. Install Python 2.7.10
    2. Install Pycharm(If you have not done it already)
    3. Download and install the OpenCV executable.
    4. Add OpenCV in the system path(%OPENCV_DIR% = /path/of/opencv/directory)
    5. Goto C:\opencv\build\python\2.7\x86 folder and copy cv2.pyd file.
    6. Goto C:\Python27\DLLs directory and paste the cv2.pyd file.
    7. Goto C:\Python27\Lib\site-packages directory and paste the cv2.pyd file.
    8. Goto PyCharm IDE and goto DefaultSettings>PythonInterpreter.
    9. Select the Python which you have installed on Step1.
    10. Install the packages numpy,matplotlib and pip in pycharm.
    11. Restart your PyCharm.
    12. PyCharm now has OpenCV library installed and working.
    0 讨论(0)
  • 2020-12-03 02:52

    nothing hard.

    ➡If you’re using anaconda

    conda install opencv
    

    ➡If you have python package manager pip

    pip install opencv-python
    
    0 讨论(0)
提交回复
热议问题