I have been trying for several hours now but still I cannot download python 3. I already have python extension installed and in the bottom right corner of my screen it even says python 3.10.0. But when I go in the terminal and type "python" this is what it shows me: Python 2.7.16 (default, Jan 26 2020, 23:50:38) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin And I cannot install Vpython because the terminal thinks I am still using python 2!!! Please help.
Asked
Active
Viewed 664 times
1
-
3did you try `python3` ? – Mahrkeenerh Nov 01 '21 at 13:54
1 Answers
0
It's possible you are calling the wrong version of python from your terminal. Try calling python3
explicitly, see if that works? Some useful command line calls:
which python
\which python3
-> will show you the path to executable python programpython --version
\python3 --version
-> will show you the version of pythonpip --version
-> will show you the version of pip- If not found, install pip
As an additional step, it's possible that the newer version of python hasn't been added to your profile.
- Here is a solution for that: Permanently add a directory to PYTHONPATH?

Yaakov Bressler
- 9,056
- 2
- 45
- 69
-
Thanks for the help but I now see python 3 in the terminal. But I still cannot run the command: "pip install vpython" here is what it says to me: "Python 3.10.0 (v3.10.0:b494f5935c, Oct 4 2021, 14:59:20) [Clang 12.0.5 (clang-1205.0.22.11)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> pip install vpython File "
", line 1 pip install vpython ^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?" Do you have any advices about that? – Léo Lepage Nov 01 '21 at 15:21 -
-
Also, if my answer is helpful, please accept it? _(Also, considering asking a follow up Q if you find additional issues.)_ @LéoLepage – Yaakov Bressler Nov 01 '21 at 15:52
-
-
Check if `pip` is installed? Run `which pip` or `which pip3` If not installed, install it. – Yaakov Bressler Nov 01 '21 at 16:10
-
-
1Solved!!! Heres is a link to the solution I found https://www.youtube.com/watch?v=e5GL1obY_sI – Léo Lepage Nov 01 '21 at 17:41