I want to install scipy packages and I know it's a repetitive question, but I have tried all of them but I didn't find a proper solution.
when write this : import scipy
it executes successfully. but when I try this:
import scipy.spatial
I receive this message:
Traceback (most recent call last):
File "C:/Users/Hamid/Documents/kodeyaro/kodefolani.py", line 41, in <module>
from scipy.spatial import Delaunay
File "C:\Python27\lib\site-packages\scipy\spatial\__init__.py", line 92, in module>
from .qhull import *
ImportError: DLL load failed: The specified module could not be found.
what should I do?
Method 1: Using pip to install Scipy Package Step 1: Install the latest Python3 in MacOS. Step 2: Check if pip3 and python3 are correctly installed. Step 3: Upgrade your pip to avoid errors during installation. Step 4: Enter the following command to install Scipy using pip3.
With pip or Anaconda's conda, you can control the package versions for a specific project to prevent conflicts. Conda also controls non-Python packages, like MKL or HDF5. System package managers, like apt-get , install across the entire computer, often have older versions, and don't have as many available versions.
I suppose this is caused because Scipy has no Python 3.10 support (yet), so trying to install it with that Python should fail somewhere. Consider using a lower Python version, or use Anaconda (like a user suggested).
below re-installation will fix the issue as required dll will be placed at right place. user should have admin permissions on the system.
python -m pip install scipy --upgrade --force
Run this in the cmd:
pip install scipy
It is advisable to run cmd as Adminstrator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With