Trying to run a project downloaded from github. Running a virtual environment. With a very painstaking install process due to its self-conflicting requirements.txt, I manage to pip install all of the package requirements, but I am still getting a ModuleNotFoundError on several modules.
I created and activated my virtual environment by navigating to my project directory in powershell and running
python -m venv .venv
and then .venv/Scripts/activate
.
With the venv activated:
I ran pip install -r requirements.txt
and resolved the conflicts manually. None of these conflicts are modules named in the errors.
I ran python -u main.py
per the instructions from the project.
This produces many ModuleNotFoundErrors.
My next step was to ensure that pip install and the python executable are the ones I want to run so I ran where.exe python
Which shows “C:[mypath].venvScriptspython.exe
I ran python -m pip --version
which shows pip 24.0 from C:[mypath].venvlibsite-packagespip (python 3.9) Which seems correct to me
Pip list shows all the packages installed.
I cannot figure out why Python cannot find these modules.
JustifiedBecause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.