博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用pip找不到TensorFlow
阅读量:2382 次
发布时间:2019-05-10

本文共 4235 字,大约阅读时间需要 14 分钟。

本文翻译自:

I'm trying to intstall TensorFlow using pip: 我正在尝试使用pip安装TensorFlow:

$ pip install tensorflow --userCollecting tensorflowCould not find a version that satisfies the requirement tensorflow (from versions: )No matching distribution found for tensorflow

What am I doing wrong? 我究竟做错了什么? So far I've used Python and pip with no issues. 到目前为止,我使用Python和pip都没有问题。


#1楼

参考:


#2楼

Updated 11/28/2016: TensorFlow is now available in PyPI, starting with release 0.12. 2016年11月28日更新:从0.12版开始,PyPI中现已提供TensorFlow。 You can type 您可以输入

pip install tensorflow

...or... ...要么...

pip install tensorflow-gpu

...to install the CPU-only or GPU-accelerated version of TensorFlow respectively. ...分别安装仅CPU或GPU加速的TensorFlow版本。


Previous answer: TensorFlow is not yet in the repository, so you have to specify the URL to the appropriate "wheel file" for your operating system and Python version. 先前的答案: TensorFlow尚未存在于存储库中,因此您必须为操作系统和Python版本指定指向适当的“ wheel文件”的URL。

The full list of supported configurations is listed on the , but for example, to install version 0.10 for Python 2.7 on Linux, using CPU only, you would type the following command: 上列出了支持的配置的完整列表,但是例如,要仅使用CPU在Linux上为Python 2.7安装版本0.10,您可以键入以下命令:

$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl

#3楼

You need a 64-bit version of Python and in your case are using a 32-bit version. 您需要64位版本的Python,而您使用的是32位版本。 As of now Tensorflow only supports 64-bit versions of Python 3.5.x and 3.6.x on Windows. 到目前为止,Tensorflow在Windows上仅支持64-bit versions of Python 3.5.x and 3.6.x

To check which version of Python you are running, type python or python3 to start the interpreter, and then type import struct;print(struct.calcsize("P") * 8) and that will print either 32 or 64 to tell you which bit version of Python you are running. 要检查您运行的是哪个版本的Python,请键入pythonpython3来启动解释器,然后键入import struct;print(struct.calcsize("P") * 8) ,然后将输出3264来告诉您哪个位版本的Python正在运行。


#4楼

From tensorflow website: "You will need pip version 8.1 or later for the following commands to work". 从tensorflow网站上:“您将需要pip版本8.1或更高版本,以下命令才能起作用”。 Run this command to upgrade your pip, then try install tensorflow again: 运行以下命令以升级您的pip,然后尝试再次安装tensorflow:

pip install --upgrade pip

#5楼

If you are trying to install it on a windows machine you need to have a 64-bit version of python 3.5. 如果您尝试将其安装在Windows计算机上,则需要具有64位版本的python 3.5。 This is the only way to actually install it. 这是实际安装它的唯一方法。 From the : 从 :

TensorFlow supports only 64-bit Python 3.5 on Windows. TensorFlow在Windows上仅支持64位Python 3.5。 We have tested the pip packages with the following distributions of Python: 我们已经使用以下Python发行版对pip包进行了测试:

Python 3.5 from Anaconda Anaconda的Python 3.5

Python 3.5 from python.org. 来自python.org的Python 3.5。

You can download the proper version of python from (make sure you grab one of the ones that says "Windows x86-64") 您可以从下载正确版本的python(确保您抓住显示“ Windows x86-64”的版本之一)

You should now be able to install with pip install tensorflow or python -m pip install tensorflow (make sure that you are using the right pip, from python3, if you have both python2 and python3 installed) 您现在应该可以使用pip install tensorflowpython -m pip install tensorflow进行python -m pip install tensorflow (如果同时安装了python2和python3,请确保使用的是来自python3的正确pip)

Remember to install Anaconda 3-5.2.0 as the latest version which is 3-5.3.0 have python version 3.7 which is not supported by Tensorflow. 请记住安装Anaconda 3-5.2.0作为3-5.3.0的最新版本,并安装Tensorflow不支持的python 3.7版本。


#6楼

If you are using the Anaconda Python installation, pip install tensorflow will give the error stated above, shown below: 如果您正在使用Anaconda Python安装,则pip install tensorflow将给出上述错误,如下所示:

Collecting tensorflowCould not find a version that satisfies the requirement tensorflow (from versions: )No matching distribution found for tensorflow

According to the TensorFlow installation page, you will need to use the --ignore-installed flag when running pip install. 根据TensorFlow安装页面,运行pip install时需要使用--ignore-installed标志。

However, before this can be done see this to ensure the TF_BINARY_URL variable is set correctly in relation to the desired version of TensorFlow that you wish to install. 但是,在执行此操作之前,请先查看此以确保相对于希望安装的TensorFlow所需版本正确设置了TF_BINARY_URL变量。

转载地址:http://kuexb.baihongyu.com/

你可能感兴趣的文章
大数据成电影新驱动?理性对待
查看>>
以大数据视角 看住房信息普查
查看>>
心急吃不了热豆腐 脚踏实地玩儿转大数据
查看>>
中国电信大数据价值挖掘:聚焦商业模式探索
查看>>
“大数据”时代的喜与忧
查看>>
政府搭建云平台 迎接“大数据时代”
查看>>
宁家骏:大数据比云计算更为落地
查看>>
IBM PureData:破解大数据的利器
查看>>
实施大数据项目时所需要做的三件事
查看>>
北京开放政府信息资源 “大数据”供社会化利用
查看>>
数据安全在裸奔:大数据是黄金更是刺刀
查看>>
互联网金融火爆预示大数据时代来临
查看>>
大数据安全和隐私问题永远无法解决
查看>>
中国网库董事长王海波:实体经济也需要大数据
查看>>
互联网大会:大数据驱动的智能创新
查看>>
评论:大数据是否仅仅只是炒作?
查看>>
让大数据成为政务信息化的战略资源
查看>>
大数据时代企业须把握三个变化
查看>>
华为发布敏捷交换机备战大数据
查看>>
百度企业营销会免费开讲助渝企“搜赢大数据时代”
查看>>