Tell us what’s happening:
replit is giving me the ‘No module named pytest’ error; I have tried fixes posted in other threads, and I have tried adapting for both 3.8 and the 3.10 (which appears to be what the replit.nix file defaults to now)
Your code so far
This is my current replit.nix
{ pkgs }: {
deps = [
pkgs.python310Full
pkgs.python310Packages.pytest
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
];
PYTHONHOME = "${pkgs.python310Full}";
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";
};
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Challenge: Scientific Computing with Python Projects - Arithmetic Formatter
Link to the challenge: