Is it possible to use python 3.12 on replit?

Question:
Is it possible to use python 3.12 on replit?
Repl link:

code snippet

Yes, add the Nix package python312 to the packages in the replit.nix file:

{ pkgs }: {
	deps = [
		pkgs.python312
	];
}

Then also make you use the correct Nix channel in the .replit file:

[nix]
channel = "stable-23_11"

You’ll also want to add a run method there:

run = ["python", "main.py"]
2 Likes

Yes, it’s possible to use.

1 Like