我对这个问题有一个非常相似的问题,但仍落后一步.我的Windows 7(抱歉)64位系统上只安装了一个版本的Python 3 .
我按照这个链接安装了numpy - 正如问题所示.安装顺利但我执行时
import numpy
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
导入错误:没有名为numpy的模块
我知道这可能是一个超级基本问题,但我还在学习.
谢谢
我正在尝试在我正在分发的包中创建所需的库.它需要SciPy和NumPy库.在开发过程中,我安装了两个
apt-get install scipy
Run Code Online (Sandbox Code Playgroud)
安装了SciPy 0.9.0和NumPy 1.5.1,它运行良好.
我想使用相同的方法pip install- 以便能够在我自己的包的setup.py中指定依赖项.
问题是,当我尝试:
pip install 'numpy==1.5.1'
Run Code Online (Sandbox Code Playgroud)
它工作正常.
但是之后
pip install 'scipy==0.9.0'
Run Code Online (Sandbox Code Playgroud)
惨遭失败
raise self.notfounderror(self.notfounderror.__doc__)
numpy.distutils.system_info.BlasNotFoundError:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
Run Code Online (Sandbox Code Playgroud)
我如何让它工作?
通过pip安装scipy时:
pip install scipy
Run Code Online (Sandbox Code Playgroud)
Pip无法构建scipy并抛出以下错误:
Cleaning up...
Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy
Storing debug log for failure in /Users/administrator/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
我怎样才能成功建立scipy?这可能是OSX Yosemite的一个新问题,因为我刚刚升级并且之前没有安装过scipy的问题.
调试日志:
Cleaning up...
Removing temporary dir /Users/administrator/dev/KaggleAux/env/build...
Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy
Exception information:
Traceback (most recent call last): …Run Code Online (Sandbox Code Playgroud) 我试图运行以下简单的代码
import scipy
scipy.test()
Run Code Online (Sandbox Code Playgroud)
但是我收到以下错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 586, in runfile
execfile(filename, namespace)
File "C:/Users/Mustafa/Documents/My Python Code/SpectralGraphAnalysis/main.py", line 8, in <module>
import scipy
File "C:\Python27\lib\site-packages\scipy\__init__.py", line 61, in <module>
from numpy._distributor_init import NUMPY_MKL # requires numpy+mkl
ImportError: cannot import name NUMPY_MKL
Run Code Online (Sandbox Code Playgroud)
我在Windows 10下使用python 2.7.
我安装scipy但似乎没有解决问题
任何帮助表示赞赏.
无法下载任何python Windows模块并安装.我想尝试scrapy框架和无堆栈但由于错误"需要Python版本2.6,在注册表中找不到"而无法安装.
试图安装它
Windows 7,64位机器
我使用的是Anaconda 1.7,32位.我从这里下载了正确版本的netCDF4安装程序.
我试图将HKEY_LOCAL_MACHINE\SOFTWARE\Python文件夹复制到HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node中.没运气.
有谁知道为什么会发生这种情况?Anaconda安装在默认位置,C:/.
是的,我知道Anaconda在软件包列表中有netCDF4 - 但如果仔细观察,它只适用于Mac和Linux.
我安装了Python 2.7和NumPy.我已经为SciPy下载了预构建的二进制文件,但安装脚本失败并显示以下错误:
(http://www.netlib.org/blas/)找不到Blas 库.可以在numpy/distutils/site.cfg文件(部分[blas])中指定搜索库的目录,也可以通过设置BLAS环境变量来指定
.
我真的不知道这个愚弄它.我认为这是一个简单的安装过程,但似乎不是.我用Google搜索了BLAS环境变量,但找不到任何合适的东西.任何帮助表示赞赏.
麦克风
编辑:没关系,我找到了一个非官方的安装程序exe.
python ×8
scipy ×6
install ×3
numpy ×3
windows ×3
pip ×2
python-2.7 ×2
apt ×1
import ×1
installation ×1
package ×1
python-3.x ×1