简体   繁体   English

无法通过pyCharm windows 8安装scipy - 找不到lapack / blas资源

[英]Trouble installing scipy via pyCharm windows 8 - no lapack / blas resources found

I'm currently having trouble installing scipy via PyCharm's package manager. 我目前在通过PyCharm的软件包管理器安装scipy时遇到问题。 I have installed numpy successfully and do have the Microsoft Visual Studio C/C++ compiler in the System Variables. 我已经成功安装了numpy并且在系统变量中安装了Microsoft Visual Studio C / C ++编译器。

However, when it's time to install scipy in PyCharm, the following error occurs: 但是,当在PyCharm中安装scipy时,会发生以下错误:

Executed Command: pip install scipy 执行命令:pip install scipy

Error occured: numpy.distutils.system_info.NotFoundError: no lapack/blas resources found 发生错误:numpy.distutils.system_info.NotFoundError:找不到lapack / blas资源

I have seen other resources on installing blas / lapack on windows, but I'm unsure if it will work with PyCharm's installations. 我已经看到了在windows上安装blas / lapack的其他资源,但我不确定它是否适用于PyCharm的安装。

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. 只要您使用Python的python.org版本,安装软件包的最简单方法是首先检查它们是否在Christoph Gohlke的Windows扩展软件包中 There are pre-compiled packages for both numpy and scipy , along with many many others. numpyscipy预编译包,以及许多其他包。 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 . 你需要从那里安装numpy ,因为它与英特尔的MKL静态链接,并且是那里许多其他软件包的必要依赖,包括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. PyCharm使用pip实用程序,因此如果在程序包安装期间发生任何错误,则意味着如果在命令行中尝试pip install <package> ,则会出现相同的错误。

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. 因此,在您的情况下,最好的方法是在命令行中从http://www.lfd.uci.edu/~gohlke/pythonlibs/为您的解释器安装预编译的包,然后重新启动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 . 安装用于科学,数学,工程,数据分析的Python包的最佳方法是使用Anaconda

It's a Python distribution, that comes with the most popular packages (see the list of packages here ). 这是一个Python发行版,附带最受欢迎的软件包(请参阅此处的软件包列表)。

I had the same issue, and downloading Anaconda, and switching the project interpreter in PyCharm to \\Anaconda3\\python.exe helped solve this. 我有同样的问题,并下载Anaconda,并将PyCharm中的项目解释器切换到\\ Anaconda3 \\ python.exe帮助解决了这个问题。

Good luck! 祝好运!

Install python packages using Anaconda and use interpreter as anaconda/python.exe when creating new python projects. 使用Anaconda安装python包,并在创建新的python项目时使用解释器作为anaconda / python.exe。

It worked well for me without giving above errors. 它没有给出上述错误,对我来说效果很好。

Refer this:create a project using PyCharm 请参阅:使用PyCharm创建项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM