Reprint address: https://blog.csdn.net/u010429424/article/details/73649985
Pycharm + OpenCV3 + Python3 configuration record
introduction:
OpenCV + Python is a powerful tool for developing computer vision. Due to the needs of the project, OpenCV + Python has been configured on the Windows system recently, and Pycharm is used as a development tool. The records are as follows.
Step1.
Download and install anaconda3
Step2.
Install Pycharm
Step3. Download the opencv_python package
according to your computer version . Here I downloaded opencv_python-3.2.0-cp35-cp35m-win_amd64.whl
After downloading, use the pip install command to install.
The installation process is:
First run cmd as an administrator, and then enter the directory where opencv_python-3.2.0-cp35-cp35m-win_amd64.whl (hereinafter referred to as .whl) is located, where .whl is downloaded to the desktop, so use the cd command to enter the desktop. Then execute the pip install command, as shown below:
There is information that it is necessary to replace cp35m in opencv_python-3.2.0-cp35-cp35m-win_amd64.whl with none,
otherwise the following error will be reported: .whl is not supported wheel on this platform
I did not replace it during the installation process can be installed normally
Step4.
Test. Enter python on the command line, enter import cv2 If no error is reported, the installation is successful