anaconda tensorflow tflearn 自动安装脚本 anaconda使用-b可以非交互式安装

复制代码
install_dir=/usr/local/anaconda3

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"  # script dir
bash $DIR/Anaconda3-5.0.1-Linux-x86_64.sh -b -p  $install_dir

$install_dir/bin/conda install --use-local $DIR/mock-2.0.0-py36_0.tar.bz2
$install_dir/bin/conda install --use-local $DIR/pbr-3.1.1-py36_0.tar.bz2
$install_dir/bin/conda install --use-local $DIR/protobuf-3.5.1-py36_3.tar.bz2
$install_dir/bin/conda install --use-local $DIR/tensorflow-1.4.0-py36_0.tar.bz2
$install_dir/bin/conda install --use-local $DIR/tflearn-0.3.2-py36_0.tar.bz2

export LD_LIBRARY_PATH=$install_dir/lib/:$LD_LIBRARY_PATH
export PATH=$install_dir/bin:$PATH

# test if all python lib install correctly
$install_dir/bin/python -c "import tensorflow"
if [[ $? == "0" ]]; then
  echo "tensorflow install successfully!"
else
  echo "tensorflow install failed!"
  exit 1
fi

$install_dir/bin/python -c "import tflearn"
if [[ $? == "0" ]]; then
  echo "tflearn install successfully!"
else
  echo "tflearn install failed!"
  exit 1
fi# add to source env file
env_file=$DIR//detect_env.sh
echo "#!/usr/bin/bash" > $env_file
echo "export LD_LIBRARY_PATH=$install_dir/lib/:\$LD_LIBRARY_PATH" >> $env_file
echo "export PATH=$install_dir/bin:\$PATH" >> $env_file
echo "!!!Important!!!"
echo "Please use source $env_file to use tensorflow and tflearn...."
复制代码

 

posted @   bonelee  阅读(923)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
历史上的今天:
2017-03-22 Lucene 的四大索引查询 ——bool 域搜索 通配符 范围搜索
2017-03-22 lucene 5可以运行的demo
2017-03-22 lucene 5的测试程序——API变动太大
2017-03-22 随机生成50个字段的elasticsearch的测试程序输入
2017-03-22 NOSQL安全攻击
点击右上角即可分享
微信分享提示