安装python numpy
来源:互联网 发布:网络通信平台 编辑:程序博客网 时间:2024/06/05 02:10
1.研究python-nltk时,需要安装numpy。
采用下面的命令安装失败: $sudo pip install -U numpy ...
File "numpy/core/setup.py", line 410, in generate_config_hmoredefs, ignored = cocache.check_types(config_cmd, ext, build_dir) File "numpy/core/setup.py", line 41, in check_types out = check_types(*a, **kw)
File "numpy/core/setup.py", line 271, in check_types "Cannot compile 'Python.h'. Perhaps you need to "\
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel. ----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/numpy Storing complete log in /root/.pip/pip.log
可以通过gui安装:system>administration>add/remove software>search numpy and install it.
也可以试试用sudo yum install numpy安装。
yum searchyum search numpy
============================== N/S Matched: numpy ============================== numpy-f2py.x86_64 : f2py for numpy
numpy.x86_64 : A fast multidimensional array facility for Python
Name and summary matches only, use "search all" for everything.
2.安装python模块时出现:error: Setup script exited with error: command 'gcc' failed with exit status 1
yum install python-devel
0 0
- python+numpy+matplotlib安装
- python numpy+matplotlib安装
- 安装python numpy
- python安装numpy模块
- Python中安装numpy
- python---numpy安装问题
- python 安装NumPy
- python安装numpy函数库
- python安装NumPy
- 安装python numpy
- Python的Numpy安装
- 安装python及numpy
- python安装numpy库
- python 安装numpy
- python+numpy安装
- python 安装 numpy模块
- python、numpy、matplotlib安装
- Python安装numpy
- 类的基本知识总结
- Ubuntu下安装fastboot的时候出现 未发现软件包
- C语言文件读写操作
- 局域网内Windows使用RealVNC远程连接CentOS6.5桌面
- Ajax实现原理详解
- 安装python numpy
- lower_bound,upper_bound
- 音效
- Android中的JNI
- 上传头像功能,需要对上传的图片进行截取,springMVC+spring+mybatis。
- spring框架学习(六)AOP
- weblogic 部署报错问题总结
- sort
- highcharts获取点击事件及其点击点的值