tensorflow1.14.0安装不上,报错

pip install tensorflow==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

tensorflow1.14.0安装不上,报错

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>pip install tensorflow==1.14.0 -i https://pypi.tuna.tsing
hua.edu.cn/simple
WARNING: pip is configured with locations that require TLS/SSL, however the ssl
module in Python is not available.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because
 the SSL module is not available.")': /simple/tensorflow/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because
 the SSL module is not available.")': /simple/tensorflow/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because
 the SSL module is not available.")': /simple/tensorflow/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because
 the SSL module is not available.")': /simple/tensorflow/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because
 the SSL module is not available.")': /simple/tensorflow/
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/tensorflow/: There
was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tun
a.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/tensorflow
/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not
available.")) - skipping
ERROR: Could not find a version that satisfies the requirement tensorflow==1.14.
0 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.14.0

C:\Users\Administrator>

为了安装tensorflow-gpu 1.14.0,你可以按照以下步骤进行操作: 1.首先,确保已经安装了Anaconda,你可以从官网下载并安装Anaconda。安装过程中,可以选择将Anaconda添加到环境变量中,也可以选择添加。 2.接下来,安装CUDA 10.0和cuDNN。你可以从CUDA官方网站下载CUDA 10.0,并按照它们的文档进行本地安装。同时,确保选择了本地安装选项。 3.打开Anaconda Prompt,并创建一个新的tensorflow环境。使用以下命令创建一个名为"tensorflow"的环境: conda create -n tensorflow python=3.6 4.激活tensorflow环境。使用以下命令激活tensorflow环境: activate tensorflow 5.tensorflow环境下安装tensorflow-gpu 1.14.0。由于网络可能较慢,你可以选择使用清华大学镜像源进行安装。使用以下命令安装tensorflow-gpu 1.14.0: pip install --ignore-installed --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.14.0 6.安装完成后,你可以使用PyCharm来使用tensorflow环境。在PyCharm的设置中,选择项目解释器,并添加一个现有的环境。选择tensorflow环境中的python.exe文件作为解释器。 请注意,以上步骤是安装tensorflow-gpu 1.14.0的一种方法。但是,请确保你的GPU支持CUDA 10.0,并且你已经正确安装了相应的驱动程序。另外,如果你的需求是特别需要使用gpu,你也可以考虑安装tensorflow-cpu,它需要GPU支持。 引用中提到了使用conda指令安装tensorflow-gpu 1.14.0的过程可能比较缓慢,需要耐心等待。引用中提供了使用清华大学镜像源进行安装的方法。而引用中指出在tensorflow 2.x版本中再区分使用gpu还是cpu,当检测到有gpu并安装了cuda后,会自动调用gpu。如果你的目标是使用gpu,确保你的环境配置正确。如果你遇到任何问题,可以查看你的设备可使用情况,可以使用以下代码查看cpu和gpu设备的可用情况: from tensorflow.python.client import device_lib print(device_lib.list_local_devices()) 这些命令将显示你的设备列表,包括可用的CPU和GPU设备。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值