Skip to content
← Back to Community
Updating to Python 3.9.1 ??
Profile icon
amog1mashedfig974312

How can I update to Python 3.9.1? A dependency in my repl requires version 3.9 and its one of the main dependencies for my project. I tried to do it manually but it doesnt recognize sudo

Edit: Turned out my issue wasn't an outdated python version, but because I accidentally installed asyncio (it's a built-in module) lol.
However, my question still stands in case this comes up in the future.

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
Profile icon
DynamicSquid
Profile icon
amog1mashedfig974312
Comments
hotnewtop
Profile icon
SixBeeps

Nix to the rescue!
Add the pkgs.python39 derivation, then run Python as usual.
See how to use Nix here

Profile icon
amog1mashedfig974312

@SixBeeps Awesome! Thanks for sharing ❤️

Profile icon
teacherniels2

See here for an example: https://replit.com/@teacherniels2/python310-template#main.py
Sadly can't use pip then.

Profile icon
Aivoybia

I think repl has the most updated python version

Profile icon
amog1mashedfig974312

@Aivoybia The latest Python version is 3.9.6.
Repl is still on 3.8