问题
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.
回答1:
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
.
回答2:
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.
回答3:
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).
回答4:
I had the same issue, and downloading Anaconda, and switching the project interpreter in PyCharm to \Anaconda3\python.exe helped solve this.
Good luck!
回答5:
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
来源:https://stackoverflow.com/questions/29883690/trouble-installing-scipy-via-pycharm-windows-8-no-lapack-blas-resources-foun