This is the 5th day of my participation in the August More Text Challenge

You can download the latest installation package here

  1. Go to the Python website (www.python.org/) and download the version you want…

  2. Decompress the installation package

  3. Click on the python – 3.7.0 – amd64

    Double-click the installation program. It is recommended to customize the installation path and let it automatically add the path, or manually add the path. Just keep hitting “Next” after that.

  4. Verify that the installation is successful. Open CMD, type Python, and the following prompt appears

Install pycharm

The installation package

  1. PyCharm Select the version of PyCharm depending on whether your machine is 64-bit or 32-bit. You can go to the PyCharm website: www.jetbrains.com to download the installation package for the corresponding machine. Download the installation package

  2. Step 1: Go to PyCharm’s official website and click Tools, as shown below:

  1. Step 2: Click “PyCharm” to enter the installation package present page, as shown below:

  2. Step 3: Click “DOWNLOAD NOW” and DOWNLOAD the installation package of the corresponding operating system according to your own needs, as shown below:

  1. Step 4: Wait until the installation package is downloaded and run.

Pycharm installation process

  1. Step 1: Find the PyCharm installation package you have downloaded, as shown below.

  2. Step 2: Double-click the downloaded PyCharm installation package, the interface as shown below will appear, and click “Next”

  3. Step 3: Select the installation directory. Pycharm requires a large amount of memory. It is recommended to install Pycharm on disk D or DISK E, not disk C:

  4. Step 4: Click Next to enter the following interface:

Number 1: Create desktop shortcut (create desktop shortcut), 32-bit if the system is 32-bit, 64-bit if the system is 64-bit. Now most are 64-bit, not clear system type: my computer = “right-click =” property

My computer is 64-bit, so I choose 64-bit.

Number 2: Update path variable(restart needed) Update path variable(restart needed), add launchers dir to the path (add the initiator directory to the path). The previous PyCharm version did not, so there is no choice.

Number 3: Update context menu, add Open Folder as project. The previous PyCharm version did not, so there is no choice.

Pycharm = pycharm = pycharm = pycharm = pycharm

Number 5: Don’t choose it. I did it the first time I installed it and almost gave up. Pycharn is a foreign software, the website is foreign, the download speed is slow. Some people wait an hour or two, I wait half an hour, just force the shutdown. Unchecked installation will be completed quickly. Just tick the numbers 1 and 4, 2 and 3 depending on your needs. (Number 5. If you need it, you can download and install JRE from the official website.)

5. Step 5: Click Next to enter the following interface:

Click Install to Install it by default.

Step 6: Wait patiently for about two minutes, as shown below:



Step 7: You should then have the following installation completed screen:

Step 8: Click Finish and Pycharm is installed. Next, configure Pycharm and double-click the Pycharm icon on the desktop to enter the following interface:

Import pyCharm Settings from where you want to import pyCharm Settings (Do not import Settings). Select Do not Import Settings and then OK to proceed to the next step.

Step 9: Check I Confirm that… , the interface is as follows:

Step 10: Click “Continue”, the interface is as follows:

Step 11: Data sharing, the interface is as follows:

This is basically a questionnaire to see if you would like to send information to JetBrains to improve the quality of their products

Step 11: Click “Send” or “Don’t send”. The following screen is displayed:



Skin choice, Darcula theme is recommended, this theme is better for protecting the eyes and looks very good ~~~

Skip Remaining and set defaults (skip Remaining and set defaults)

Step 13: Click Skip Remaining and Set Defaults in the lower left corner to enter the activation screen and select the second License Server, as shown in the following figure:

There are three types of Active activation: 1. 2. Activation code (recommended) The Evaluate trial lasts for 30 days.

Install opencv

  1. Press Windows+R at the same time

  2. Manually enter CMD in the command line window

  3. PIP install opencv-python

  4. Test: When you enter the Python IDE, type import cv2. If no error is reported, OpenCV library is installed successfully.

Note:

  1. ModuleNotFoundError: No module named ‘cv2’ in pycharm: ModuleNotFoundError: No module named ‘cv2’

I also found a lot of methods in Baidu, such as importing.py files and so on, but they did not work. Finally, after I understood the use of this thing, I solved the problem:

The solutions are as follows:

The first method is to download the “Opencv-Python” package directly from PyCharm.

Second method (the first method is not successful, you can try)

First: Open pyCharm on your phone and find the Setting option in file (as shown)

Click on the button found in the picture

After clicking, there are two options (Add/Show All). Select the “Show All” option and click the icon indicated by the arrow

When you go in, it looks like this

Click on the + sign in the upper right corner and place the site-packages folder in the python path you downloaded, like mine in the image above. Then apply this configuration.

If the project still fails, just restart it. Img = cv2.imread(” D:/123.jpg “) “Cv2 does not recognize a relative path and must be an absolute path in the format of uplink.”