How do I upgrade to Python 3.11 (I have some 3.11 specific code to add) please?
I have looked at other questions on this forum, have Googled, checked StackOverflow, asked ChapGPT, have tried commenting out parts of replit.nix, have looked into how Nix & UPM & Poetry work but not found a solution. I understand venv and $PATH but do not know the solution in Replit.
All of the existing Python 3.11 templates on Replit have errors with Poetry.
Simply editing the replit.nix to 311 and the pyproject.toml to 3.11 does not work.
If I do try editing the prybar-python then the consule shows error repeatedly:
repl process died unexpectedly: exit status 1
Error: prybar-python310 not found in $PATH
If I do try editing the replit.nix PYTHONBIN to python 311 then the shell shows error:
python3-3.11.0/bin/python3.10: No such file or directory
Repl:
https://replit.com/@VetClarity/template14
Replit.nix contents:
{ pkgs }: {
deps = [
pkgs.python310Full
pkgs.replitPackages.prybar-python310
pkgs.replitPackages.stderred
];
env = {
PYTHON_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
# Needed for pandas / numpy
pkgs.stdenv.cc.cc.lib
pkgs.zlib
# Needed for pygame
pkgs.glib
# Needed for matplotlib
pkgs.xorg.libX11
];
PYTHONBIN = "${pkgs.python310Full}/bin/python3.10";
LANG = "en_US.UTF-8";
STDERREDBIN = "${pkgs.replitPackages.stderred}/bin/stderred";
PRYBAR_PYTHON_BIN = "${pkgs.replitPackages.prybar-python310}/bin/prybar-python310";
};
}