Python Forum
Pip lists the module but python does not find it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pip lists the module but python does not find it
#1
Hi people,

I am struggling to get a package that, supposedly, pip already installed.
the package in question is fenics. Installed with pip install fenics.

With pip list it shows the package and its dependencies, however when running python the error "ModuleNotFoundError" comes up.

I only have this version of python in my computer, I am running windows and the PATH of windows has already the paths for the python folder, for the lib\site-packages folder and for the python310\scripts

Cheers.
Reply
#2
(Apr-11-2023, 11:20 AM)Dato Wrote: I am struggling to get a package that, supposedly, pip already installed.
the package in question is fenics. Installed with pip install fenics.
If look at Repo so is there only a single file setup.py.
This is only for allow FEniCS Python components to be installed from PyPI using pip.
See FEniCS Project Installation for Windows they only have Docker containers support.
Can of course use Windows Subsystem for Linux (WSL) or VirtualBox to get Linux on Windows.
Dato likes this post
Reply
#3
(Apr-11-2023, 03:58 PM)snippsat Wrote:
(Apr-11-2023, 11:20 AM)Dato Wrote: I am struggling to get a package that, supposedly, pip already installed.
the package in question is fenics. Installed with pip install fenics.
If look at Repo so is there only a single file setup.py.
This is only for allow FEniCS Python components to be installed from PyPI using pip.
See FEniCS Project Installation for Windows they only have Docker containers support.
Can of course use Windows Subsystem for Linux (WSL) or VirtualBox to get Linux on Windows.

You are right about the installation procedure, one needs to relay on the linux subsystem. I read through the documentation at the time, but because my first attempt was installing in windows with pip and it seemed to identify it, I found it very confusing that it could not be imported later on.

Thank you for your answer.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to find module in su mode? korenron 2 1,929 Jan-10-2021, 07:41 PM
Last Post: Gribouillis
Star --- Python lists and Linked Lists --- sabe 3 2,708 Nov-22-2020, 05:51 PM
Last Post: DeaD_EyE
  Cannot find module 'torch' ErnestTBass 6 3,635 Oct-13-2020, 05:33 PM
Last Post: ErnestTBass
  Split dict of lists into smaller dicts of lists. pcs3rd 3 2,387 Sep-19-2020, 09:12 AM
Last Post: ibreeden
  how to find module in installed packages keuninkske 3 3,225 May-09-2020, 10:21 PM
Last Post: keuninkske
  Unable to find an existing module arbiel 2 4,975 Apr-11-2020, 07:12 PM
Last Post: arbiel
  Pycharm Cannot Find Pygame Module Myang123 2 6,001 Aug-07-2019, 01:26 AM
Last Post: Myang123
  How to find functions or methods in a module? deepakdeshp 8 4,267 May-23-2019, 09:36 AM
Last Post: DeaD_EyE
  sort lists of lists with multiple criteria: similar values need to be treated equal stillsen 2 3,291 Mar-20-2019, 08:01 PM
Last Post: stillsen
  Python can't find module installed in anaconda iFunKtion 12 54,563 Mar-06-2019, 05:15 PM
Last Post: jwsmallz

Forum Jump:

User Panel Messages

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