Home > Article > Backend Development > How to install python cv2 module
Installation method: 1. Configure the python environment; 2. Open the cmd command window and execute the "python" command to check whether the environment is configured properly; 3. If the configuration is successful, execute the "exit()" command to exit the environment; 4. Execute the "pip install opencv-python" command to install the cv2 module.
The operating environment of this tutorial: windows10 system, python3 version, DELL G3 computer
python installation cv2 module
1. First configure the python environment
Open the "Control Panel" and click "Advanced System Settings"-"Environment Variables"
In the system variables, double-click "Path"
At the end of the string, add a semicolon;
Then enter your installation python path, click "OK" until the setting is completed.
Open the cmd command line, enter python, and check whether the environment is configured properly. If the following prompt appears, the configuration is successful.
Exit the environment exit()
2. Enter pip install opencv-python
and click Enter to install
After the installation is completed, it will prompt that the installation was successful
##Related recommendations:The above is the detailed content of How to install python cv2 module. For more information, please follow other related articles on the PHP Chinese website!