How to install scipy module installation? - python

I'm trying to install scipy 0.19 for python 3.6 windows 10 32 bit version. I tried the pip installation method but it doesn't work then i also downloaded the .whl file for scipy then also the program shows that "no module named scipy". How do I solve this problem?

Related

Python 3.6 and Intel numpy issue

I wanted to test the Intel distribution of numpy (see https://software.intel.com/en-us/articles/installing-the-intel-distribution-for-python-and-intel-performance-libraries-with-pip-and).
I followed the simple installing procedure: pip install intel-numpy
The package was installed correctly. However, the simple "import numpy as np" raised the following error:
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try git clean -xdf (removes all
files not under version control). Otherwise reinstall numpy.
I am using Python 3.6.5 and my system is MacOs, but I got the very same error on Windows.
Does anyone know if Intel page is deprecated? Or if Intel packages are not compatible with Python 3.6.5?
PS: I know that Anaconda distribution install Intel distribution, by do I really need to use Anaconda?

Numpy package error

It is showing numpy package installed
and when I am running a code having the numpy package imported, it's showing an error message
install numpy+mkl if you using python 3.5 64bit numpy-1.12.1+mkl-cp35-cp35m-win_amd64 if you using python 3.5 32 bit install numpy-1.11.3+mkl-cp35-cp35m-win32
from this link you can find bit http://www.lfd.uci.edu/~gohlke/pythonlibs/

ImportError SciKit-learn

I am trying to get started with machine learning, so I have installed the packages: numpy, Scikit-learn, matplotlib, scipy. Some I have installed directly from pip with:
python -m pip install "package name"
and and others i have downloaded the binary files and then installed with pip. It shows no errors when I import matplotlib, numpy and sklearn, but when I write:
from sklearn import svm
it gives me the error:
ImportError: cannot import name 'svm'
I am on Python 3.5.1 and on Windows 10. Does anyone have any solutions?
import sklearn.svm as svm
model = svm.SVC()
....
http://scikit-learn.org/stable/modules/classes.html#module-sklearn.svm
It does seem that you didn't install it properly. Since you're on windows I would recommend using the Unofficial Windows Binaries for Python Extension Packages website to install future packages.
Make sure you also install the proper binaries as I pointed out in this post Installing scipy in Python 3.5 on 32-bit Windows 7 Machine. The windows version doesn't matter just make sure you're downloading Visual C++ 2015 redistributable package.

Installed external package (via pip) in Enthought Canopy now import throws ImportError: cannot import name scimath

I was trying to use the lmfit package for doing nonlinear least squares fit and I notices that the Canopy curated version is really old and doesn't have most of the objects. So I followed the instructions here https://support.enthought.com/entries/23389761 as I have done before no problem:
pip install --upgrade setuptools
pip install --upgrade lmfit
Now when I execute the same exact code some "import" statements (I suppose those involved with scimath) give:
ImportError: cannot import name scimath
Seems python standard library imports are fine e.g. import os.
I'm on Ubuntu Linux 14 with Canopy 1.5.2
What happened and how can I fix it and avoid breaking it again.
I solved the problem but I am still not sure why this occurred originally. I went into the package manager and uninstalled scimath reinstalled it and did explicit kernel restarts on my IPython notebooks and interpreters. This fixed it but I don't see why unless somehow the scimath installation was corrupted. Before that I tried restarting application, computer, and reinstalling canopy.

Trouble installing scikit-learn on Windows 7 machine

I installed sci-kit learn with the installer scikit-learn-0.13.1.win32-py2.7.exe but when I try to call it in Canopy and iPython I get the following error: "ImportError: No module named sklearn".
I tried the following solutions found online but non of them work
Running python setup.py install in the directory and got this error: "ImportError: no module named sklearn._build_utils"
Tried pip install - U scikit-learn but the download keeping on timing out
Tried easy_install - U scikit-learn but the download also kept on timing out
I'm wondering if it is because I am using Canopy (Free version) and I should maybe uninstall it and install all my packages again using vanilla Python.
Thanks.
Have you tried adding sklearn to your python path manually? Have a look at this thread, it might help!
How to add to the pythonpath in windows 7?

Categories