大厦numpy的1.7.1在Ubuntu [英] Building NumPy 1.7.1 on Ubuntu

查看:138
本文介绍了大厦numpy的1.7.1在Ubuntu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这两个Ubuntu和Python中的牛逼,所以请多多包涵。我需要包括在 numpy的1.7.1 的一些功能。我的Ubuntu 12.04 LTE,但是,自带的 numpy的1.6.x版 sudo易于得到更新的没有得到任何提高。

I'm a newby in both Ubuntu and Python, so please bear with me. I need some functionality included in NumPy 1.7.1. My Ubuntu 12.04 LTE, however, comes with NumPy 1.6.x, and sudo apt-get update doesn't get it any higher.

所以我去sourceforge上和遵循的指示给这里 userguide .PDF 。我已到:

So I went to sourceforge and followed the instructions given here in userguide.pdf. I have made up to:

蟒蛇setup.py构建--fcompiler = gnu95

python setup.py build --fcompiler=gnu95

,即我有(从它好像成功)建numpy的1.7.1。现在的问题是:我该怎么办?什么地方,我应该还可以将一些目录,如果是在哪里?在 userguide.pdf 的只是停止在这里并没有给任何更多的信息。

, i.e. I have (from what it seems like, successfully) built NumPy 1.7.1. The question is: what do I do now? Should I move some directories somewhere, if yes, where? The userguide.pdf just stops here and doesn't give any more information.

这是第一次,我尝试过这一点,所以请善待;-)。

This is the first time, I'm ever trying this, so please be kind ;-).

推荐答案

当我从源代码安装一些Python包我通常做

When I install some python package from source I usually do

python setup.py build [options]
python setup.py install --user

最后一步安装包在〜/。本地/ lib目录/ pythonX.X /站点包/。在系统目录之前,该目录扫描(因此使用这个版本)。此外,你并不需要须藤,你不要冒险搞砸了什么容易安装

The last step install the package in ~/.local/lib/pythonX.X/site-packages/. This directory is scanned before the system directories (so this version is used). Furthermore you don't need sudo and you don't risk to mess up with what apt installs

这篇关于大厦numpy的1.7.1在Ubuntu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆