Skip to content

Latest commit

 

History

History
168 lines (109 loc) · 4.96 KB

README-zh_CN.md

File metadata and controls

168 lines (109 loc) · 4.96 KB

Orange

Join the chat at https://gitter.im/biolab/orange3

build: passing codecov

Orange是一个组件化的数据挖掘软件。它包括一系列的数据可视化、探查、预处理和建模技术。可以通过友好、只能的图形化界面使用,对于高级用户,也可以作为Python开发的模块。

这是Orange 3 开发版本,稳定版2.7可从(binaries and sources)获得。

安装开发环境(Ubuntu 16.04)

Orange需要Python 3.4+。 为构建并安装Orange开发环境:

# 通过包管理器安装一些构建依赖
sudo apt install virtualenv git build-essential python3-dev

# 为Orange及其依赖包创建独立的Python环境
virtualenv --python=python3 --system-site-packages orange3venv
# 切换到位Orange3创建的Python环境
source orange3venv/bin/activate

# 克隆github仓库
git clone https://github.com/biolab/orange3.git
cd orange3

pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
# 安装GUI需要的Qt依赖
pip install PyQt5
# 如果Python <= 3.4,可以用包管理器
# sudo apt install python3-pyqt4

# 安装其他依赖
pip install -r requirements-core.txt  # Orange需要的Python库, Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"
pip install -r requirements-gui.txt   # Orange GUI需要

pip install -r requirements-sql.txt   # SQL支持
pip install -r requirements-opt.txt   # 可选

# 最后以开发模式安装Orange
pip install -e .

安装SciPy和qt-graph-helpers有时比较难,因为它们的非python依赖必须手动安装。更详细的知道参看 wiki.

安装开发环境(Windows 10)

简介

Orange3需要Python 3.4+。
Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"

步骤

git clone https://github.com/biolab/orange3.git
cd orange3

conda create python=3 --name orange3
d:\Anaconda3\Scripts\activate orange3

pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
// 安装GUI需要的Qt依赖
pip install PyQt5    // 如果Python <= 3.4,可以用包管理器 sudo apt install python3-pyqt4   
// 安装其他依赖
// 手动安装VC++ 14.0 Build Tools 
pip install -r requirements-core.txt  # Orange需要的Python库,依赖VC++ 14.0
pip install -r requirements-gui.txt   # Orange GUI需要
pip install -r requirements-sql.txt   # SQL支持
pip install -r requirements-opt.txt   # 可选

// 最后以开发模式安装Orange
pip install -e .

// 生成安装包
python setup.py build_ext -i --compiler=msvc install

启动

从命令行启动Orange图形化界面,运行: set QT_API=pyqt5 orange-canvas -h # 或 python3 -m Orange.canvas

Anaconda安装Orange运行包

首先,安装 Anaconda ,为Orange创建虚拟环境:

conda create python=3 --name orange3 

添加conda-forge:

conda config --add channels conda-forge

从conda-forge可获得最新版Orange3。安装Orange3:

conda install orange3

启动Orange图形化界面

Orange图形化界面需要PyQt,PyQt在Python3没法用pip安装。你只能下载和安装为全局模式。 确保Orange的虚拟环境创建时加上--system-site-packages,这样就能访问安装的PyQt4

从命令行启动Orange图形化界面,运行: orange-canvas # 或 python3 -m Orange.canvas

后面附加 --help 可查看启动选项列表。

如果你是在PyQt5上运行Orange,或者安装了多个PyQT版本,设置环境变量QT_API为指定的PyQT版本, 如:

export QT_API=pyqt5
orange-canvas

如何在Windows平台编译

下载正确的安装包。需要numpy+mklscipy

安装

pip install some-wheel.whl

安装[Visual Studio compiler].

[Visual Studio compiler]: http://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F98B238/visualcppbuildtools_full.exe

然后,在Orange3目录下运行:

python setup.py build_ext -i --compiler=msvc install

补充

d:\Anaconda3\Scripts\activate d:/Anaconda3/envs/awscli/python.exe -m pip install -U pylint

BC4

过滤

文件夹

..git ..ipynb_checkpoints ..settings ..vscode .\build .\dist ***_pycache_ ***.ipynb_checkpoints

文件

*.pyd