I using pycharm 2018.3.7 (beacuse I have a 32-bit pc) and i have python 3.8.5 when i am choosing the
the interpreter python from appdata/local/programs/python, it is showing python 3.7 (in pycharm only) but when i use idle and other ide's they are showing python 3.8.5.
why is it so....?
please help me
Related
I have recently installed debian10 and VSCode. I have checked the currently installed version of python on my system is and it is python 3.7.3. This is also the version returned by python --version. When running python --version in terminal of vscode it returns python 3.8.8. When i go to select the python interpreter it only gives me options to select python 3.8.8. If i specify the path python i am currently using(python 3.7.3) it does not recognize it, or the other python versions there, which include python 2.7 etc. The path is /usr/bin . please help, ive been strugling with this for so long now.
Have you tried updating to the newest version of python? If not, try and it should work fine after.
have different version of python installed to my Mac, when I opened vs studio code it said I am using version 2.7.16 while the terminal for my Mac said its 3.8.5. How am I going to config that?
I am new to linux and somewhat new to python. I am trying to follow a tutorial that is using python 3.9, however I was using python 3.4.2. Once I realized I was out of date I downloaded python 3.9.0 and when I run
python -V
in the terminal is stats Python 3.9.0, but the python shell is still running 3.4.2
I am not sure how to change the python version for the current project, or start a new project in python 3.9 when I click on python 3 idle in the menu.
It still states python 3.4.2
So how do I get the python idle to run python 3.9.0 and not 3.4.2?
I have 2 python versions in my PC as well (2 and 3), what I usually do is to add an alias in ~/.bashrc, and update it when needed, example alias python="python3" or if python2 is needed just alias python="python2"
I'm new to Python and in web dev and now I'am learning to code with Django. I'm using Atom IDE and I installed Anaconda with Python version 3.8.2.
But when I activate VirtualEnvironment and type Atom console "python" and see that the installed version of python is 2.7.16.
When I use terminal and do the same thing I see that python version is 3.8.2 as expected.
If I type in Atom "Python3" I see 3.7.3 version for some reason.
Why in Atom I see such old version of Python?
And why if I type python3 I see version lower than I installed and why in the terminal I see what I expect but not i Atom?
Thank you!
I have installed PyCharm 2016.3 and installed two version of Python (3.5.2 and 2.7.9) on Windows.
I would like to use both of these version, so I configured it at the Project Interpreter window. I chose the 3.5.2 version like the image below
After that I opened the Python Console, everything works fine with the 3.5.2 version of Python. But when I open the Terminal and press python --version, the version was still not changed.
I couldn't run the server with the statement python manage.py runserver because the project contains some code which could only be ran in Python 3.x, not 2.x.
How can I fix this problem?
PyCharm Terminal is your local system terminal, as it can be seen in the official PyCharm website.
So you need to make sure that your local python, points to the python setup version you want.
For Linux, something like that:
alias python=/usr/local/bin/python3.5
For Windows you may find helpful this discussion.
The terminal which you mention is actually the Windows Command Prompt, so it won't use the settings that you specified in Pycharm. Think of it as a shortcut to the windows cmd.
Regarding the code compatibility between Python 2.x and 3.x, if the developer does use some Python 2.x code alongside Python 3.x code within the same project, then they should import a package known as 'Future', so the Python 2.x syntax works in Python 3.x. If they haven't then you'll need to make the necessary changes...