Trying to upgrade my python version from 3.9 to 3.10

Ive unintalled python 3.9 and installed 3.10 but my visual studio is still registering it as 3.9.1 when i do the python3 --version command and attempting to run AutoGPT it throws an error saying 3.10 or newer is required… Very frustrating

Ive unintalled python 3.9 and installed 3.10

By what mechanism?

but my visual studio is still registering it as 3.9.1 when i do the
python3 --version command and attempting to run AutoGPT it throws an
error saying 3.10 or newer is required… Very frustrating

I’d expect Visual Studio to have some kind of setting where you can
select to desired Python to use. My might just need to point that at
3.10. In principle you can install a few varieties of Python at a time
for special purposes.

Disclaimer: I am not a Visual Studio user.

Cheers,
Cameron Simpson cs@cskk.id.au

  • Where do you believe that 3.9 was installed before? If you look in that location now, what do you see?
  • Where do you believe that 3.10 is installed now? If you look in that location now, do you see a Python installation?
  • What results do you get if you try to use Visual Studio for this code?
    import sys
    print(sys.executable)
    print(sys.version)
    
  • What results do you get if you try to use python3 at the command line to run that code (after saving it in a .py file)?
  • What exactly do you mean by “run AutoGPT”? (Exactly what steps do you take, in order to “attempt” that?) What is the complete error (show a full stack trace, starting from the line that says Traceback (most recent call last):, formatting it as multi-line code)?