Python Forum
ModuleNotFoundError: No module named 'scipy.optimize'; 'scipy' is not a package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModuleNotFoundError: No module named 'scipy.optimize'; 'scipy' is not a package
#1
Quick disclaimer: I'm still very much a beginner to python

I get the error in the title when I run

from scipy.optimize import brentq
Everything I've found regarding this issue suggests that I either do not have scipy installed (I do have it installed though) or have it installed incorrectly. Running a "pip install scipy" gives the following output:

Requirement already satisfied: scipy in c:\users\Aaron\appdata\local\programs\python\python38-32\lib\site-packages (1.5.1)
Requirement already satisfied: numpy>=1.14.5 in c:\users\Aaron\appdata\local\programs\python\python38-32\lib\site-packages (from scipy) (1.18.5)

I also found something saying that the interpreter I'm using may be the problem but it appears to be correct. The interpreter selected is:

Python 3.8 (Python Practice) C:\Users\Aaron\PycharmProjects\Python Practice\venv\Scripts\python.exe

I've successfully imported and used pylab as well as numpy so I'm not sure why scipy is being fussy. Also I'm using the PyCharm IDE if that is pertinent. Some help resolving this issue would be greatly appreciated.
Reply


Messages In This Thread
ModuleNotFoundError: No module named 'scipy.optimize'; 'scipy' is not a package - by AaronKR - Jul-08-2020, 11:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Minimize function with SciPy PierreLCV 3 328 Apr-05-2024, 07:51 AM
Last Post: paul18fr
  no module named 'docx' when importing docx MaartenRo 1 888 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 23,779 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,591 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,453 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,514 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,342 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,042 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  How can I multithread to optimize a groupby task: davisc4468 0 711 Jun-30-2023, 02:45 PM
Last Post: davisc4468
  Help with pyinstaller "No module named" korenron 9 9,112 Jun-15-2023, 12:20 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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