Project Interpreter in PyCharm's settings for the project "Python 3.6 C:\Anaconda\python.exe"
But in my code I get inspections like "Python version 3.5 does not support a 'F' prefix"
There is no Python3.5 on my system anywhere, I tried to resolve this doing the following:
nothing is working. And anyway why does PyCharm show that the python version is 3.6 when I select it as the project interpreter, but that it is 3.5 in inspections?
Yes, you should be able to switch between python versions. As a standard, it is recommended to use the python3 command or python3. 7 to select a specific version. The py.exe launcher will automatically select the most recent version of Python you've installed.
Go to Settings->Editor->Inspections. There in Python->Code compatibility inspections, you should see that Python 3.5's box is ticked in.
This allows you to choose for which versions of Python your code will be inspected.
I totally agree with @Eskapp's answer, but here are a few additions that I had to do.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With