pycharm python version problem

The new system, ubuntu14.04, needs to use opencv to do some image processing, and a pycharm community version is released.

The opencv installation failed in the interpreter. Say that my operating system does not support it?

Under python in the terminal, version 3.4, go back to pycharm and re-establish the project, only to find a small prompt:

python 3.4 has reached its end-of-life dateand it is no longer supported in pycharm

Well, if you don't support it, you won't support it. It's really willful.

So the question is, who do you support? Didn't tell me?

Back to the official website , um,

python3 only supports 3.5 to 3.8

I cried at that time.

I am python3.4, what am I doing wrong?

Just kidding, writing programs is important.

Here is the solution:

Under Ubuntu, search Python under usr/bin, the following files appear:

 

 

You can see the file type named python: the link to the executable file.

Right-click to check the properties, this link will point the default Python to Python3.4.

It is this program, when we type python in the terminal, python3.4 will appear, you can also specify it. Because a higher version is required, install 3.5 first

sudo apt-get install python3.5

 

This ln is the link instruction

 

Go back to pycharm, create a new project, you can see the 3.5 version of python, and the interpreter can search for opencv again to install it smoothly

Guess you like

Origin blog.csdn.net/sinat_39416814/article/details/100036878