Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing scipy package in windows

Tags:

python

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?

like image 719
hamid kavianathar Avatar asked Dec 13 '15 16:12

hamid kavianathar


People also ask

How do I install SciPy packages?

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.

What is pip install SciPy?

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.

Does Python 3.10 support SciPy?

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).


2 Answers

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
like image 107
Vikas Garg Avatar answered Sep 30 '22 18:09

Vikas Garg


Run this in the cmd:

pip install scipy

It is advisable to run cmd as Adminstrator.

like image 37
ssd352 Avatar answered Sep 30 '22 19:09

ssd352