Linux(Fedora)下python “no module named numpy” 解决方案

本文介绍在Fedora系统中遇到Python环境缺少numpy模块的解决办法。主要步骤包括从官方网站下载numpy源码包,解压缩后进入相应目录,通过执行python setup.py install命令进行安装。文章提供了一个实用的解决方案,帮助用户避免因依赖软件安装复杂或发行版兼容性问题而产生的困扰。

Fedora下python “no module named numpy” 解决方案

基本情况:

        On Linux, Scipy and Numpy official releases are source-code only. Installing Numpy and Scipy from source is reasonably easy; However, both packages depend on other software, some of them which can be challenging to install, or shipped with incompatibilities by major Linux distributions. Hopefully, you can install Numpy and Scipy without any software outside the necessary tools to build python extensions, as most dependencies are optional.


安装方法:


1.在官网上下载该包:http://sourceforge.net/projects/numpy/files/

2.解压

3.cd进入解压后的路径

4.输入命令:

          python setup.py install

5.安装完成


转载于:https://www.cnblogs.com/johnpher/archive/2011/11/04/2570607.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值