I'm having problem with installing package SciPy for python 3.4 on Windows 10. There is an error I've got from cmd on admin mode. Other packages I installed correctly, such as numpy, scikit_learn, matplotlib.
There is the error message
Also I tried using
python pip -m scipy
But it didn't work out well. As the error message shows, probably there is sth with Lapack, but I have no idea how to fix this.
Because you try to install by source code, you need first compile and setting dependencies. Log file shows that not dependencies were found.
The hard way, download, compile and setting all dependencies. The easy way, you can use a python distrubution that install all for you (a lot packages by default, e.g. numpy, scipy, matplotlib, pandas, ipython, spyder). A good recommendation of python distribution is Anaconda.
Related
I am currently trying to run a program with Scipy, and I want to use the load_npz module.
Whenever I tried to run it, the compiler would say that that module doesn't exist.
I ran scipy.__version__ and got 0.13.0b1, which makes sense as to why it couldn't find the module as it doesn't exist in that version, but I am confused as I have 1.5.2 installed in both pip and brew yet it keeps defaulting to the oldest version which is very frustrating.
Does anybody know how to get rid of this version? I have tried uninstalling from pip and brew, along with finding the path of the imported scipy with the outdated version yet it still is causing issues.
I do have a lot of packages installed (numpy, matplotlib, etc.) so could it be a dependency that keeps reinstalling an old version?
Strangely, even if I delete scipy from both brew and pip, it will still show the old version but throw an error on a different local file that also uses scipy saying the module does not exist (which is expected as I deleted it).
write this python to find out the location of the imported scipy
import scipy
print(scipy.__file__)
I figured it out, I just deleted all my possible scipy locations and then just downloaded Anaconda and I'm using that as my python interpreter.
I'm trying to start with OpenCV with python. I have experience c# and I have knowledge of c++. However, I feel more comfortable with python instead of c++. I installed OpenCV then python 3.4 in visual studio 2015. At the beginning I've received an error numpy, "Module couldn't be found", thankfully, I resolved it. The I got another error cv2 "Module couldn't be found" I asked an question yesterday, but I think the question has been left away. Anyways, I'm not complaining, but I still need some help please to stat with OpenCV in python.
Installing python 3.4 Successful
Installing numpy Successful
installing matpilotlib Failed
installing cv2 Failed
can anybody help me please thanks a lot.
It's very common to install Python packages through pip today (recursive acronym for pip installs packages). However, this is not that trivial under Windows.
How to install matplotlib:
Try to open a commandline and type in pip install matplotlib. If this does not work, you'll need to do some more work to get pip running. I gave a detailed answere here: Not sure how to fix this Cmd command error?.
How to install OpenCV:
The Python OpenCV DLL must be made for your version of Python and your system architecture (or, to be more specific, the architecture your Python was compiled for).
Download OpenCV for your Python version (2/3)
Try replacing the x64 version with the x86 version
There are a lot of different binaries here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv. Try to get the one exactly matching your Python version and System architecture and install it via pip (cp35 means CPython version 3.5 ect.).
If you have the OpenCV .whl file matching your system configuration, do pip install file.whl.
Hope this helps!
You can install matplotlib using pip (which is already installed on your machine - mentioned in your previous quesiton):
pip install matplotlib
more info:
http://matplotlib.org/faq/installing_faq.html
You may be better off using an package such as pythonxy as a start, e.g. from https://python-xy.github.io/ , instead of installing each single package manually.
I'm currently having trouble installing scipy via PyCharm's package manager. I have installed numpy successfully and do have the Microsoft Visual Studio C/C++ compiler in the System Variables.
However, when it's time to install scipy in PyCharm, the following error occurs:
Executed Command: pip install scipy
Error occured: numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
I have seen other resources on installing blas / lapack on windows, but I'm unsure if it will work with PyCharm's installations.
If anybody has the solution / resources to redirect me to, please let me know.
As long as you're using the python.org version(s) of Python, the easiest way to install packages is to first check if they are in Christoph Gohlke's Python Extension Packages for Windows repository. There are pre-compiled packages for both numpy and scipy, along with many many others. You'll need to install numpy from there, as it is statically-linked to Intel's MKL, and is a necessary dependency for many of the other packages there, including scipy.
PyCharm uses pip utility so if any error occurs during package installation it means that if you try pip install < package > in the command line you will get the same error.
So in your case the best way is to install pre-compiled package from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for your interpreter in the command line and after that restart PyCharm. Also you can check that now the package is in a package list for your interpreter: Settings| Project| Project interpreter.
The best way to install Python packages for science, math, engineering, data analysis - is using Anaconda.
It's a Python distribution, that comes with the most popular packages (see the list of packages here).
I had the same issue, and downloading Anaconda, and switching the project interpreter in PyCharm to \Anaconda3\python.exe helped solve this.
Good luck!
Install python packages using Anaconda and use interpreter as anaconda/python.exe
when creating new python projects.
It worked well for me without giving above errors.
Refer this:create a project using PyCharm
A remote server that I used for python development recently migrated to Ubuntu 14.04 and it has broken my numpy and scipy installation. I do not have root access and everything I have tried has resulted in failure. So far I have:
1) Tried to install numpy from source built with the system version of python. This gives a PyUnicodeUCS2_FromUnicode error which I believe is because the system version uses ucs4. As I do not have root access I do not know if there is anything I can do about this.
2) Tried to install numpy using pip. This gives an error saying that it cannot find the Python.h header file that is included in python-dev. Again, I have no root access so cannot install python-dev.
3) Tried to create a virtual environment and install a new version of python. Initially I got a httpsrequest import error which meant I couldn't use pip but I was able to install from source. However when I then installed scipy and tried to import a module, I got the error that a libgfortran library was not found.
I've spent the last day trying to find a solution to this but everything I try seems to encounter an error somewhere. I also don't want to have to install to much stuff (i.e. dependencies) in my home directory to get this to work as I only have a limited amount of space. Any ideas on how I could proceed?
Have you considered using an 'all-in-one' package for scientific computing with Python, such as
Canopy
Anaconda
Miniconda
Have you tried downloading Sage? You can just use it as an Ipython system if you want (sage -ipython) and then import numpy and scipy.
There seems to be a binary for 14.04, though I don't know the specifics of your platform.
(This does have the downside that it is a very large install, of course, so it may not suit your needs, but it should make it easy, anyway.)
Hi I'm trying to install matplotlib on my mac. I have lion OS X.
my python version is 2.7.1 ( this is what it says when I run it from terminal)
every time I install matplotlib, it promots this error
matplotlib 1.1.0 cannot be installed on this disk. matplotlib requires System python 2.7 to install.
I'm new to the python world and I need a tool to graph a few things... so a clear explanation is much appreciated.
Thanks!
You are installing a binary package which is going to expect a specific system python. You are better off building from source.
Just try installing it from pip:
pip install numpy
pip install matplotlib
If you do not yet have pip, you can install it like this:
wget "http://peak.telecommunity.com/dist/ez_setup.py"
python ez_setup.py
easy_install pip
If any of this fails, then follow #Nolen Royalty's guide that he mentioned in the comments
I've tried installing python in various different ways to get numpy, scipy, and matplotlib to all work together, and its a huge pain. Your exact version of python will dictate the version of numpy, scipy, and matlplotlib that will work for you.
By far, the easiest solution I have found is to use the pre-built package Enthought. It takes care of all of those problems with one easy installer. You might get some additional software installed like mayavi (an interactive 3d plotting tool), but its not too much.
If you are a student (or have ever been one since the dawn of email), you can download the entire Enthought package for free here. Or you can visit the Enthought home at www.enthought.com. All you have to do is select the academic license and then insert a email that ends in .edu.
I even think there are free trial versions which should solve the issue. I've never tried any of the trial versions, but even if it is a limited time trial, you should be able to use the trial version, and then see exactly which versions of each package you need to install. Its a little more roundabout, but it should work.
I tried to install numpy, scipy, and matplolib on my Mac Book Pro running Lion many times and they all failed. Nolen's recipe cam pretty close, but some of the matplotlib tests were failing in strange ways. The method that worked for me can be found on the page Installing Python, virtualenv, NumPy, SciPy, matplotlib and IPython on Lion
Since you list you are new to Python, I recommend installing matplotlib with MacPorts. First install macports
http://www.macports.org/install.php
then execute
port install py27-matplotlib
A couple of years ago there were some extra steps, but now it is this simple. You need to make sure you set your environment for the macports python, but that is provided in the documentation.
Have Fun!