Python Forum
Libraries installed with pipenv, but ModuleNotFoundError returned
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Libraries installed with pipenv, but ModuleNotFoundError returned
#3
Hi, snippsat. Thanks for the reply.

(Sep-04-2021, 04:35 PM)snippsat Wrote:
(Sep-04-2021, 01:01 AM)jpncsu Wrote: However, when I run my script with
python3 model_to_green_value.py
You most do this in shell when active,usually on Windows there is python and not python3
I got used to using "python3" because I had two versions of Python on my machine.

(Sep-04-2021, 04:35 PM)snippsat Wrote: I never use pipenv anymore had to much issues.
venv build into Python is easy to use,can use pipx for more options.
The best 3-pary of this is in my option Poetry
Thank you for mentioning this. I am not very experienced programmer and have almost no experience with package/dependency management. My advisor told me about pipenv and I thought it would be fine. I will investigate Poetry further.

I did figure out how to deal with my problem in pipenv. I need to run the script with
pipenv run python script.py
instead of
python script.py
That runs the script with the pipenv environment/settings.

jpncsu
Reply


Messages In This Thread
RE: Libraries installed with pipenv, but ModuleNotFoundError returned - by jpncsu - Sep-06-2021, 07:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Pipenv mohammadasadi4 0 309 Jan-15-2024, 10:35 AM
Last Post: mohammadasadi4
  How to access values returned from inquirer cspower 6 834 Dec-26-2023, 09:34 PM
Last Post: cspower
  pipenv, is it still useful? LandonJPGinn 3 880 Jun-05-2023, 11:40 AM
Last Post: snippsat
  List of Modules/Libraries Installed by Default? rontarrant 2 1,015 Oct-14-2022, 05:18 PM
Last Post: rontarrant
  SQLAlchemy Object Missing when Null is returned Personne 1 1,756 Feb-19-2022, 02:50 AM
Last Post: Larz60+
  Getting "name 'get_weather' is not defined error and no json_data returned? trthskr4 6 3,656 Sep-14-2021, 09:55 AM
Last Post: trthskr4
  setting up pipenv tobiasfw 1 2,027 Jan-13-2021, 05:46 PM
Last Post: buran
  ModuleNotFoundError when application is not installed via setup.py bytebutcher 3 2,173 Jan-08-2021, 10:28 AM
Last Post: Gribouillis
  Managing dependencies with pipenv t4keheart 6 2,960 Aug-05-2020, 12:39 AM
Last Post: t4keheart
  Exception: Returned Type Mismatch Error devansing 1 5,173 Mar-06-2020, 07:26 PM
Last Post: ndc85430

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020