一、anaconda安装记录

1.1 下载安装脚本:
wget https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh

1.2 运行安装向导:
bash Anaconda3-5.2.0-Linux-x86_64.sh

1.3 确认是否安装成功:
conda --version

这个版本的Anaconda3-5.2.0-Linux-x86_64.sh,在vscode连接网络时出错,换了个版本成功。

conda --version未成功,anaconda: command not found

二、修改bashrc文件

1、使用命令:sudo apt install vim 安装vim文本编辑器
2、使用命令:vim ~/.bashrc 修改环境变量

3、在文本最后添加命令:export PATH=~/anaconda3/bin:$PATH

4、重启环境变量:source ~/.bashrc

anaconda安装成功

三、tensorflow安装

conda create --name tensorflow python=3.5
source activate tensorflow

四、NNI安装和demo运行

  • 当前支持 Linux 和 MacOS。测试并支持的版本包括:Ubuntu 16.04 及更高版本,MacOS 10.14.1。 在 python >= 3.5 的环境中,只需要运行 pip install 即可完成安装。
    python3 -m pip install --upgrade nni
  • 通过克隆源代码下载示例。
    git clone -b v0.5.1 https://github.com/Microsoft/nni.git
  • 运行 mnist 示例。
    nnictl create --config nni/examples/trials/mnist/config.yml
  • 在命令行中等待输出 INFO: Successfully started experiment!。 此消息表明 Experiment 已成功启动。 通过命令行输出的 Web UI url 来访问 Experiment 的界面。

    INFO: Starting restful server...
    INFO: Successfully started Restful server!
    INFO: Setting local config...
    INFO: Successfully set local config!
    INFO: Starting experiment...
    INFO: Successfully started experiment!
    -----------------------------------------------------------------------
    The experiment id is egchD4qy
    The Web UI urls are: http://223.255.255.1:8080 http://127.0.0.1:8080
    ----------------------------------------------------------------------- You can use these commands to get more information about the experiment
    -----------------------------------------------------------------------
    commands description 1. nnictl experiment show show the information of experiments
    2. nnictl trial ls list all of trial jobs
    3. nnictl top monitor the status of running experiments
    4. nnictl log stderr show stderr log content
    5. nnictl log stdout show stdout log content
    6. nnictl stop stop an experiment
    7. nnictl trial kill kill a trial job by id
    8. nnictl --help get help information about nnictl
    -----------------------------------------------------------------------
  • 在浏览器中打开 Web UI url,可看到下图的 Experiment 详细信息,以及所有的 Trial 任务。 查看这里的更多页面示例。



 

最新文章

  1. [BI项目记]-搭建代码管理环境之服务端
  2. Oracle游标带参数
  3. 武汉科技大学ACM :1005: A+B for Input-Output Practice (V)
  4. SQL - 配置SQLServer 使其可以远程访问
  5. [妙味Ajax]第二课:实例:留言板、瀑布流
  6. Linux硬链接和软连接详解
  7. web实现数据交互的几种常见方式
  8. Hyper Text Transfer Protocol(超文本传输协议)
  9. java集合框架之ArrayList
  10. COSC2309/2347 Semester 1, 2019
  11. ClickHouse之clickhouse-local
  12. hdu3790 dijkstra+堆优化
  13. IO复用\阻塞IO\非阻塞IO\同步IO\异步IO
  14. C#中三层架构UI、BLL、DAL、Model实际操作
  15. 发票查验---异步处理多条记录---demo代码
  16. C# 简单Tcp通信demo
  17. 【BZOJ4523】[Cqoi2016]路由表 Trie树模拟
  18. C++字符串类
  19. Python接口测试实战4(下) - 框架完善:用例基类,用例标签,重新运行上次失败用例
  20. 第二次c++作业

热门文章

  1. android中获取其他应用的SharedPreferences
  2. Android笔记布局资源文件
  3. 为避免种族歧视,谷歌Chrome将不再使用“黑名单”等词
  4. Web api配置填坑攻略
  5. input属性设置type="number"之后, 仍可输入e;input限制只输入数字
  6. 【JMeter_14】JMeter逻辑控制器__交替控制器<Interleave Controller>
  7. 基于NACOS和JAVA反射机制动态更新JAVA静态常量非@Value注解
  8. Quartz.Net系列(七):Trigger之SimpleScheduleBuilder详解
  9. 2020年最新78道JVM面试题总结(含答案解析和思维导图)
  10. 在Java虚拟机上班是一种怎样的体验?