美文网首页
问题集锦

问题集锦

作者: 西方失败9527 | 来源:发表于2019-04-10 17:45 被阅读0次

服务器环境由被破坏了,又重新装下tensorflow

1)miniconda安装后不能使用conda 命令,此时需要将执行路径导入环境变量:

   echo 'export PATH="/home/xwl/miniconda3/bin:$PATH"' >> ~/.bashrc

   source ~/.bashrc

2)创建一个新的虚拟环境,方法是选择 Python 解析器并创建一个 ./tf目录来存放它:

      conda create -n tf pip python=3.6

      顺便激活环境 source activate tf  或者 conda activate tf

      失活命令   // conda deactivate 或者source deactivate 

3)在虚拟环境中tensorflow安装

       pip install --upgrade tensorflow-gpu -i https://pypi.mirrors.ustc.edu.cn/simple/

4)lsb_release -a

5)

Latest TensorFlow supports cuda 8-10. cudnn 6-7.

Each TensorFlow binary has to work with the version of cuda and cudnn it was built with. If they don't match, you have to change either the TensorFlow binary or the Nvidia softwares.

Official tensorflow-gpu binaries (the one downloaded by pip or conda) are built with cuda 9.0, cudnn 7 since TF 1.5, and cuda 10.0, cudnn 7 since TF 1.13. These are written in the release notes. You have to use the matching version of cuda if using the official binaries.

If you don't like to change your Nvidia software, you can:

(1) Use a different version of TensorFlow

(2) Use non-official binaries built by others. e.g.: https://github.com/mind/wheels/releaseshttps://github.com/hadim/docker-tensorflow-builder#builds,

https://github.com/inoryy/tensorflow-optimized-wheels

(3) Build the binaries by yourself from source with your version of Nvidia software.

6)镜像地址

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 

豆瓣(douban) http://pypi.douban.com/simple/ 

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

使用:pip install tensorflow-gpu==1.12.0  -i http://pypi.douban.com/simple

7)

https://tensorflow.google.cn/install/source

8)

8) pip install opencv-python

相关文章

  • 问题集锦

    公司一 在两个子线程中利用Handler 实现通信 手写冒泡算法 Activity 四种启动模式 Activity...

  • 问题集锦

    (intermediate value)(...) is not a function https://githu...

  • 问题集锦

    1. Release apk打包问题:Lint found fatal errors while assembli...

  • 问题集锦

    一伙人凭借激情凑在一起开店容易,但是想要经营好并非易事。 第一:股东众多、管理混乱且低效。众筹模式少则几十人,多则...

  • 问题集锦

    title: 问题集锦 fastjson 使用 unable to resolve superclass of ...

  • 问题集锦

    OC、C++、Swift混编易遇到如下问题: Use of '@import' when C++ modules ...

  • 问题集锦

    Nodejs连接数据库,用node 运行查询数据成功。用react引用该文件,则报错,createconnect ...

  • 问题集锦

    服务器环境由被破坏了,又重新装下tensorflow 1)miniconda安装后不能使用conda 命令,此时需...

  • 问题集锦

    makefile 中 .PYONY 的目的是什么默认情况下,Makefile 目标是「文件目标」- 它们用于从其他...

  • 问题集锦

    1 怎么将R语言数据框中的chr转换成dbl? 文本转为数值型(用sub替换 --> as.numeric一下)例...

网友评论

      本文标题:问题集锦

      本文链接:https://www.haomeiwen.com/subject/hqhoiqtx.html