Blank replit and python version

Hi Guys,

Started a blank replit and i’m trying to config it to use python 3.9 and more packages like django, Pillow and more.

https://docs.replit.com/tutorials/30-build-with-nix → is off

using Nix and pkgs.python39full doesn’t have pip or virtualenv
using Nix with pkgs.python39Packages.django_4 i can’t use pip either
Forking the current Python replit template is python 3.10 and i prefer 3.9

Exist any tutorial to start a blank replit and deploy .config , virtualenv and setup poetry and nix file?

If pip isn’t working, use poetry add instead. That’s the built-in Replit way (which adds stuff to the poetry.lock file).
poetry add package
poetry remove package
poetry update package

2 Likes

thks for you answer :+1:

replit.nix

{ pkgs }: {
    deps = [
      pkgs.python39Full
      pkgs.python39Packages.poetry
    ];
}

and .replit with

[packager]
language = "python3"
ignoredPackages = ["unit_tests"]

  [packager.features]
  enabledForHosting = false
  packageSearch = true
  guessImports = true

Now i can use the Tools->Packages in IDE , perfect

2 Likes