1

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.

1 Answers1

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 program
  • python --version \ python3 --version -> will show you the version of python
  • pip --version -> will show you the version of pip

As an additional step, it's possible that the newer version of python hasn't been added to your profile.

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
  • Try `pip3 install vpython`? @LéoLepage – Yaakov Bressler Nov 01 '21 at 15:50
  • 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
  • Sorry this command had the same result – Léo Lepage Nov 01 '21 at 15:55
  • Check if `pip` is installed? Run `which pip` or `which pip3` If not installed, install it. – Yaakov Bressler Nov 01 '21 at 16:10
  • where do I install it – Léo Lepage Nov 01 '21 at 16:15
  • 1
    Solved!!! 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