#Anaconda中安装Orange3脚本,完整版。包括插件的安装,在脚本中一次完成。
sudo apt-get update
sudo apt-get -y install git python-pip python-virtualenv python-qt4-dev python3-pyqt4 libqt4-dev
sudo apt-get -y install python3-sip-dev python3-dev python3-numpy python3-scipy
echo "复制orange源代码。"
if [ ! -d "orange3" ]; then
git clone https://github.com/biolab/orange3.git
cd orange3
else
cd orange3
git pull
fi
echo "============================="
echo "安装Orange的依赖库代码"
pip install -r requirements-core.txt
pip install -r requirements-dev.txt
pip install -r requirements-doc.txt
pip install -r requirements-gui.txt
pip install -r requirements-sql.txt
echo "============================="
echo "安装orange-framework扩展库"
python setup.py develop
cd ..
echo "============================="
echo "安装orange-bio扩展库"
if [ ! -d "orange-bio" ]; then
git clone https://github.com/biolab/orange-bio.git
cd orange-bio
else
cd orange-bio
git pull
fi
python setup.py develop
cd ..
echo "============================="
echo "安装orange3-text扩展库"
if [ ! -d "orange3-text" ]; then
git clone https://github.com/biolab/orange3-text.git
cd orange3-text
else
cd orange3-text
git pull
fi
python setup.py develop
cd ..
echo "============================="
echo "安装orange3-datafusion扩展库"
if [ ! -d "orange3-datafusion" ]; then
git clone https://github.com/biolab/orange3-datafusion.git
cd orange3-datafusion
else
cd orange3-datafusion
git pull
fi
python setup.py develop
cd ..
echo "============================="
echo "安装orange3-network扩展库"
if [ ! -d "orange3-network" ]; then
git clone https://github.com/biolab/orange3-network.git
cd orange3-network
else
cd orange3-network
git pull
fi
python setup.py develop
cd ..
echo "============================="
echo "安装orange3-spark扩展库"
pip install Orange3-spark
echo "Orange3 installed.================================"