Python Forum
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModuleNotFoundError: No module named 'pywin32_bootstrap'
#1
when I try to pip install matplotlib I get the following error. Moreover, when I try to import matplotlib, it works but when I try and import matplotlib.pyplot, I get an error similar to the one shown below

user@localhost ~]$ pip install matplotlib
Error:
Error processing line 7 of /usr/local/lib/python3.8/site-packages/pywin32.pth: Traceback (most recent call last): File "/usr/lib64/python3.8/site.py", line 169, in addpackage exec(line) File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'pywin32_bootstrap' Remainder of file ignored Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: matplotlib in ./.local/lib/python3.8/site-packages (3.2.1) Requirement already satisfied: numpy>=1.11 in ./.local/lib/python3.8/site-packages (from matplotlib) (1.18.4) Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.8/site-packages (from matplotlib) (2.8.1) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./.local/lib/python3.8/site-packages (from matplotlib) (2.4.7) Requirement already satisfied: cycler>=0.10 in ./.local/lib/python3.8/site-packages (from matplotlib) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in ./.local/lib/python3.8/site-packages (from matplotlib) (1.2.0) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.8/site-packages (from python-dateutil>=2.1->matplotlib) (1.14.0)
If someone can help me get rid of this problem It would be awesome

loading python from the terminal results in the following message.

Error:
Error processing line 7 of /usr/local/lib/python3.8/site-packages/pywin32.pth: Traceback (most recent call last): File "/usr/lib64/python3.8/site.py", line 169, in addpackage exec(line) File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'pywin32_bootstrap' Remainder of file ignored Python 3.8.3 (default, May 15 2020, 00:00:00) [GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>>
It does load and one can do a lot of thing but this error given above is what you see at the beginning

On the otherhand, the following errors appear when importing matplotlib.pyplot

Error:
>>> import matplotlib.pyplot Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/roguestate/.local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 2282, in <module> switch_backend(rcParams["backend"]) File "/home/roguestate/.local/lib/python3.8/site-packages/matplotlib/__init__.py", line 832, in __getitem__ plt.switch_backend(rcsetup._auto_backend_sentinel) File "/home/roguestate/.local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 213, in switch_backend switch_backend("agg") File "/home/roguestate/.local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 221, in switch_backend backend_mod = importlib.import_module(backend_name) File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/roguestate/.local/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 50, in <module> from PIL import Image File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 69, in <module> from . import _imaging as core ImportError: cannot import name '_imaging' from 'PIL' (/usr/local/lib/python3.8/site-packages/PIL/__init__.py) >>>
Reply
#2
try to reinstall pywin32 pip install --ignore-installed pywin32 as mentioned here: https://stackoverflow.com/questions/5898...-bootstrap
Reply
#3
(Jun-07-2020, 09:51 AM)mlieqo Wrote: try to reinstall pywin32 pip install --ignore-installed pywin32 as mentioned here: https://stackoverflow.com/questions/5898...-bootstrap

Thanks for the help. I tried and recieved the following error:

Error:
[Roguestate@localhost ~]$ pip install -- ignore-installed pywin32 Error processing line 7 of /usr/local/lib/python3.8/site-packages/pywin32.pth: Traceback (most recent call last): File "/usr/lib64/python3.8/site.py", line 169, in addpackage exec(line) File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'pywin32_bootstrap' Remainder of file ignored Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement ignore-installed (from versions: none) ERROR: No matching distribution found for ignore-installed
Reply
#4
I see a space between "--" and "ignore-installed". It must be --ignore-installed.
Reply
#5
(Jun-07-2020, 11:36 AM)ibreeden Wrote: I see a space between "--" and "ignore-installed". It must be --ignore-installed.

I get the same error with or without the space
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 899 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 23,835 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,607 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,470 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,533 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,352 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,052 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 9,156 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,026 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 1,876 Oct-20-2022, 02:56 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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