当前位置: 首页 > news >正文

Linux服务器中安装Anaconda+Tensorflow+Keras

  1. Anaconda安装

    1. 从https://repo.anaconda.com/archive/查看你需要下载的Anaconda版本,例如2020.11的x86_64(uname -a 查看linux框架)版
    2. 下载Anaconda到linux服务器,   
      wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
      
    3. 安装anaconda: 
      bash ​Anaconda3-2020.11-Linux-x86_64.sh
  2. 创建python虚拟环境 

    conda create -n Vpython python=3.6.9
    # Vpython: Env name
    # python=3.6.9 indicates the version of python for this env
  3. 设置Linux默认的python虚拟环境
    vi ~/.bashrc # append a Line 'conda activate Vpython' in the end of this file# Uncomment the following line if you don't like systemctl's auto-paging feature:
    # export SYSTEMD_PAGER=# User specific aliases and functions# >>> conda initialize >>>
    # !! Contents within this block are managed by 'conda init' !!
    __conda_setup="$('/home/ZLM/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
    if [ $? -eq 0 ]; theneval "$__conda_setup"
    elseif [ -f "/home/ZLM/anaconda3/etc/profile.d/conda.sh" ]; then. "/home/ZLM/anaconda3/etc/profile.d/conda.sh"elseexport PATH="/home/ZLM/anaconda3/bin:$PATH"fi
    fi
    unset __conda_setup
    # <<< conda initialize <<<
    conda activate Vpython
  4. 安装版本兼容的tensorflow和keras
    # Install keras and Tensorflow
    pip install TensorFlow==2.0.0
    pip install keras==2.3.1####Intall other libs
    pip install numpy
    pip install matplotlib
    pip install scipy

http://www.lryc.cn/news/169834.html

相关文章:

  • ubuntu+.net6+docker 应用部署教程
  • Spring常见面试题总结
  • Git全套命令使用
  • 【陕西理工大学-数学软件实训】数学实验报告(8)(数值微积分与方程数值求解)
  • Vue3为什么推荐使用ref而不是reactive
  • JavaScript函数this指向
  • Java的序列化
  • 计算机二级python简单应用题刷题笔记(一)
  • Spring注解家族介绍: @RequestMapping
  • 系统架构设计师(第二版)学习笔记----信息安全系统及信息安全技术
  • 交换机的工作原理(含实例,华为ensp操作)
  • 从字符串中删除指定字符
  • Xcode14.3.1 真机调试iOS17的方法(无iOS17 DeviceSupport)
  • JWT基础
  • 关于远程工作的面试可能存在的陷阱
  • Qt5开发及实例V2.0-第一章Qt概述
  • matlab检索相似图像
  • ArrayBlockingQueue 带有三个参数的构造函数为何需要加锁?
  • 实训笔记——Spark计算框架
  • 自定义类型:结构体
  • postman如何设置才能SwitchHosts切换host无缓存请求到指定ip服务
  • LeetCode LCR 103. 零钱兑换【完全背包,恰好装满背包的最小问题】中等
  • 竞赛 基于深度学习的人脸专注度检测计算系统 - opencv python cnn
  • supervisord 进程管理器 Laravel执行队列
  • Lnmp架构之mysql数据库实战1
  • ChatGLM 大模型炼丹手册-理论篇
  • Spring Boot集成Redis实现数据缓存
  • CentOS 7 安装Libevent
  • 线性代数的本质——几何角度理解
  • SSH key 运作方式