pip:需要将tensorflow-gpu软件包的名称更改为tensorflow [英] pip: need to change name of package tensorflow-gpu to tensorflow

查看:139
本文介绍了pip:需要将tensorflow-gpu软件包的名称更改为tensorflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将具有gpu支持的tensorflow安装到conda环境中

I'm trying to install tensorflow with gpu support into a conda environment

我使用以下命令:

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.1.0-cp35-cp35m-linux_x86_64.whl

当我查看随conda列表安装的软件包时,我会得到一个名为tensorflow-gpu的软件包.

When I look at the packages installed with conda list I wind up with a package called tensorflow-gpu.

您甚至无法导入此软件包,因为其中包含'-'.

You cannot even import this package because it has a '-' in it.

如何将名称更改为"tensorflow"?

How can I change the name to 'tensorflow'?

我现在正在考虑必须对此进行更多处理.深度学习社区中的主要软件包为什么会有这个明显的问题.希望张量流专家可以回答.我在这里遵循Ubuntu和Anaconda的指示: https://www.tensorflow.org/install/install_linux

I'm now thinking that there must be something more to this. Why would a major package in the deep learning community have this apparent problem. Hopefully, a tensorflow expert can answer. I'm following the directions for Ubuntu and Anaconda here: https://www.tensorflow.org/install/install_linux

推荐答案

在安装tensorflow gpu版本时,Anaconda将显示您已安装tensorflow-gpu. -gpu仅表示它是gpu版本,而不是名称的一部分.您仍然可以仅导入tensorflow即可找到gpu版本.

When you install the tensorflow gpu version, Anaconda will show that you have installed tensorflow-gpu. The -gpu just indicates that it is a gpu version and is not a part of the name. You can still just import tensorflow and the gpu version will be found.

这篇关于pip:需要将tensorflow-gpu软件包的名称更改为tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆