![Check conda python version](https://knopkazmeya.com/16.png)
![check conda python version check conda python version](https://user-images.githubusercontent.com/1110987/48980263-546b1300-f0cf-11e8-8646-f50bf6bc7c7c.png)
How To Check Python Version Using Python ConsoleĪnother option available to check the version of your Python interpreter within P圜harm is from the Python Console window.
#Check conda python version code
Therefore, depending on your Python scripts and how you want to run them from your Mac be mindful of whether to prefix your script with either python or python3 depending on which version you’ve written your code in. To check what default version of Python3 is used on your Mac, run the same command above but instead use the syntax python3 instead of just python, like so: ~ % python -version This means whenever I run the command python from my Mac’s terminal window it will actually run the Python 2.7 version. To check the default Python version your Mac is using you can run the same command as done above: ~ % python -version If you open up a new terminal window you might see something like this: Last login: Mon Dec 13 08:39:57 on console You can check your Python version from your Mac terminal using the same command above. Checking Python Version From Mac Terminal This result tells you what version of Python is running from the terminal window within P圜harm.
![check conda python version check conda python version](https://beenje.github.io/blog/images/setup-windows-vm-conda/conda-info.png)
When you enter this command you should see the following result: (venv) % python -version Once you’ve loaded terminal within P圜harm to check the version of the environment enter the following command: (venv) % python -versionĪs you can see above from what I see on the terminal prompt you need to enter the command python -version. This is the flexibility you have when using Python, you can create different projects and use different Python versions. The word in the parentheses might be different (venv) but the prompt is to show you that you are running a Python interpreter according to the project’s settings (as shown above) and therefore may not necessarily be the default interpreter when running Python code on your machine. In P圜harm when you open the terminal window you should see the terminal contain the virtual environment of your project.įor example, when opening a normal terminal prompt on the Mac you would see something like this: ~ %īut when opening the terminal window in P圜harm you should see something a little different, perhaps something like this: (venv) % How To Check Python Version Using Terminal When you do you should see something like this: The Python Interpreter section in your Project shows you the version of Python being usedĪs you can see from this section in P圜harm you should easily be able to spot the version of Python being used by your project. You want to click on the option Python Interpreter.
![check conda python version check conda python version](https://blog.electroica.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-18-03-28-54-1-1024x548.png)
Open that branch and you should see two options underneath: Python Interpreter and Project Structure. To check the version of Python being used in your P圜harm environment, simply click on the P圜harm menu item in the top left of your screen, and then click on Preferences.įrom the Preferences window find an option that starts with Project: and then has the name of your project. Let’s look at each of these in a little more detail: How To Check Python Version Using P圜harm Settings open the Python Console window in your Python project. open a terminal prompt in your P圜harm project 3. There are three ways to check the version of your Python interpreter being used in P圜harm: 1.
![check conda python version check conda python version](https://i.stack.imgur.com/HtHFu.png)
How can you check the version of Python you are using in P圜harm?
![Check conda python version](https://knopkazmeya.com/16.png)