Python version specification in pycharm terminal - python-3.x

In pycharm's built in terminal how can I specify which version of python I want to run? With my standard terminal I can type either 'python' or 'python3' to run 2.7 or 3.5 respectively however when I try this in the pycharm terminal I can still run 2.7 with the 'python' prompt, but the python3 prompt results in a "command not found" error. I'm really new to python, command lines and programming in general so any help would be greatly appreciated.

Pycharm > Settings > Project Interpreter

Related

Showing python 2.7.12 for python 3.9.1 on Command window?

I am using python 3.9.1 on my computer and when I try this command on cmommand windows : python -- version , I come up with 2.7.12 !!! And it does not show the version correct.
I uninstalled python and removed all the related files on C drive as well as environmental Variables...
Now I don't have python but it still shows the version 2.7.12 when I ask for Command windows!!!
Does anyone know what is the problem ????
if you have both versions then you should write python2 --version o
Go to my computer, right click and then properties. Here go to Advanced System setting
and at the bottom of the window open Environment Variables and check any variable having python on it. if there are two variable maybes this is the problem.
Also go to the app data on your windows and check files if there is a file related to the older version of python.
Good Luck.
You can use PowerShell instead of cmd as well try this one after checking the variables.

Unable to run python3 debugger in VSCode

Issue
Currently I'm unable to debug python3 scripts in VSCode. Normally, after clicking "Start debugging" with the python3 interpreter set the VSCode terminal pops up and initiates the script. Now, nothing pops up, but when I look at the "Output" section I do see output assuming from the python extension after I click "Start debugging".
If I switch the interpreter to python 2.7 it works, but 3.7 does not. I reinstalled the python vscode extension and confirmed that the path to the python3 bin file is correct.
Output
> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 ~/.vscode/extensions/ms-python.python-2019.10.41019/pythonFiles/ptvsd_folder_name.py
> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 ~/.vscode/extensions/ms-python.python-2019.10.41019/pythonFiles/ptvsd_folder_name.py
> /usr/bin/env python3 -c "import sys;print(sys.executable)"
> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -c "import sys;print(sys.executable)"
Specifications
VSCode Python Extension
Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, snippets, and more.
Version: 2019.10.41019
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python
VSCode
Version 1.36.1 (1.36.1)
OS
macOS 10.14.6 (18G4032)
I couldn't determine the cause. So I ended up deleting VSCode as well as removing all traces of python3. Finally, I reinstalled both as well as pylint and the python VSCode extension. This resolved the debugger issue.

getting the wrong version of python

I have installed python 3.6 on my laptop but when I run the version command I get the 2.7 version. I have changed the path variable and still get the same result and the funny thing is that I don't even have python 2.7 installed on my laptop.
here is the image path variable and version also when I run python in cmd I get the error run error any help will be much appreciated
Typing:
where -a python
shows you the order in which the command
python
is found on your path.
Use:
which -a python
on unix-like systems such as Linux or MacOS X.

Juno/Atom Python version different from terminal and REPL Python version

I am running Ubuntu 16.04 and my version of Python points to version 3.5, however the one in Atom points to 2.7. Does anybody know how I can change that?
So the python --version in terminal gives me:
Python 3.5.2 :: Anaconda 4.2.0 (64-bit)
and ;python --version in Atom's console gives me:
Python 2.7.12
I use Atom for Julia.
I am using Juno and PyCall.
If you want to specify the version of Python used by PyCall, you can find help in the documentation here.
I am not certain if that is your actual problem, though, since I think that ;cmd should be shelling out to the terminal. I would have thought it would be the same as running cmd in the terminal, and be unrelated to PyCall. I might be wrong, though.

Twice version of python in Ubuntu

I wold like to use Pycham with Python3.4.3 and Pyqt4.
So, I have installed Python 3.4.3 in Ubuntu 16.04 and run PyQt4 as well. After that, I continued installing Pycharm. However, pycharm interpreter didn't recognized these version of python. It only shows python 3.5 and 2.7 version. However, when I run in terminal python3.4>>import PyQt4, there isn't wrong message. I think that all compilation that I have to do was right. Anyone know what can I do to fix this problem?
How can I put Pycharm to recognize python3.4.3 that I installed with PyQt4?

Resources