79123435

Date: 2024-10-24 19:53:30
Score: 1
Natty:
Report link

I would define a requirements.txt file with what packages you want and versions. Then activate a virtual environment and install that requirement.txt file and that should fix the 'No module named' error.

  1. Making Virtual Environment in root directory

    python3 -m venv venv

  2. Activate Virtual Environment on macOS/Linux:

    source venv/bin/activate

    On windows

    venv\Scripts\activate

  3. With the virtual Environment installed, install required packages

    pip install -r requirements.txt

  4. Run your python project like normal

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: corbin lazarone