简体   繁体   English

如何在ubuntu 12.10上安装python-Orange

[英]How can I install python-Orange on ubuntu 12.10

sudo apt-get install python-Orange

or 要么

sudo apt-get install python-orange

doesn't work 不起作用

sudo python setup.py install
sudo python setup.py build

is not working as well. 工作不顺利。

Can anyone help?? 谁能帮忙?

Python has two tools for easy installation of all programs that are listed on the Python Package Index , also known as PyPi: These are easy_install and pip. Python有两个工具可以轻松安装Python Package Index中列出的所有程序,也称为PyPi:这些是easy_install和pip。 Both retrieve very recent versions of Orange (and of any other package that is updating its PyPi entry regularly). 两者都检索最新版本的Orange(以及定期更新其PyPi条目的任何其他软件包)。

I installed Orange on Ubuntu 12.04 (LTS) with pip install orange . 我在Ubuntu 12.04(LTS)上使用pip install orange安装了Orange。 You will see lots of log lines indicating that Pip is downloading and compiling Orange for you. 您将看到许多日志行,表明Pip正在下载并为您编译Orange。 Simply wait. 等一下 When pip is ready, fire up python and try to import orange . 当pip准备就绪时,启动python并尝试import orange If that works, quit python and try the GUI with python /usr/local/lib/python2.7/dist-packages/Orange/OrangeCanvas/orngCanvas.pyw (you probably want to create a shell alias or bash script for that one :-) 如果可以的话,退出python并使用python /usr/local/lib/python2.7/dist-packages/Orange/OrangeCanvas/orngCanvas.pyw尝试使用GUI(你可能想为那个创建一个shell别名或bash脚本: - )

NOTE: on 12.04 I needed to first upgrade 'distribute' itself with sudo easy_install -U distribute but this was clearly indicated by pip. 注意:在12.04我需要首先使用sudo easy_install -U distribute升级'distribute'本身,但pip清楚地表明了这一点。

https://pypi.python.org/pypi/Orange/2.6/ https://pypi.python.org/pypi/Orange/2.6/

You need to extract the dowloaded tarball on that page to a folder and then change directory to that folder. 您需要将该页面上的已下载的tarball解压缩到一个文件夹,然后将目录更改为该文件夹。 Then the sudo python setup.py... instructions will work (but you should 'build' the application before you 'install' it). 然后sudo python setup.py ...指令将起作用(但是你应该在“安装”它之前'构建'应用程序)。

go to the given link " https://pypi.python.org/pypi/Orange/2.6/ " download the package and extract the file install with given command 转到给定链接“ https://pypi.python.org/pypi/Orange/2.6/ ”下载包并使用给定命令解压缩文件安装

python setup.py build
python setup.py install

note:- during installation make sure that your net is working because it downloads required packages. 注意: - 在安装过程中,请确保您的网络正常工作,因为它会下载所需的软件包。 Also it may ask for C++ or gcc compilers while installing and could be terminate just read the errors care fully and install requires packages from the synaptic package manage in ubuntu. 此外,它可能在安装时要求C ++或gcc编译器,并且可以终止只是完全读取错误并安装需要来自ubuntu中的synaptic包管理的包。

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

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