在尝试用安装pip3 install tensorflow-gpu时,我会收到以下错误消息:
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu
我安装了。我重新启动了我的系统。我用python-3.7.0a2-amd64-webinstall.exe重新安装了python。我做错了什么?
我跟踪了Jeff的youtube视频,用GPU安装了tensorflow。我有Eva nivida GTX 1660 Ti。之后,它显示GPU是不可用的。有什么不对劲的地方吗?谢谢
# What version of Python do you have?
# What version of Python do you have?
import sys
import tensorflow.keras
import pandas as pd
import sklearn as sk
import tensorflow as tf
print(f"Tensor Flow Versi
我正在尝试安装。
我试着用pip安装它,但是我总是收到相同的错误消息:
... is not a supported wheel on this platform.
我第一次用Python3.5.1尝试过,现在升级到3.6.0b4,但是没有什么区别。
Python:
Python 3.6.0b4 (default, Nov 22 2016, 05:30:12) [MSC v.1900 64 bit (AMD64)] on win32
和平执行方案:
pip 9.0.1 from ...\python\lib\site-packages (python 3.6)
确切地说,我尝试了以下两个命
我在Mac上尝试下载tensorflow 2.0 for GPU,但每次尝试时都会收到以下形式的错误: "Could not find a version that satisfies the requirement" 我尝试了用Python 3.6下载它的方法: pip install tensorflow-gpu==2.0.0-alpha0 pip install tf-nightly-gpu-2.0-preview 我可以安装tensorflow-gpu的其他版本,但不能安装2.0版本。有人能帮我吗?
from tensorflow.python.client import device_lib
def get_available_gpus():
local_device_protos = device_lib.list_local_devices()
return [x.name for x in local_device_protos if x.device_type == 'GPU']
get_available_gpus()
'/device: gpu :0',/device: gpu :1‘当我用tensorflow 2.0 gp
我用的是ubuntu。
我想安装tensorflow-gpu==1.15.0
python3.7 -m pip install tensorflow-gpu==1.15.0
我得到了这个,艾罗:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
我正在一个新的虚拟环境上安装tensorflow。当我试图安装tensorflow时,我会收到以下消息
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from
versions: )
No matching distribution found for tensorflow-gpu
我正在使用macOS yosemitie和python3.6
我试过以下几种方法:
用python3.5安装
到pypi,下载方向盘并在上使用pip
我试着用pip安装变压器
pip install transformers
进口变压器
此错误显示
Neither PyTorch nor TensorFlow >= 2.0 have been found.Models won't be available and only tokenizers, configuration, and file/data utilities can be used.
虽然我安装了TensorFlow-GPU= 2.3.1并使用conda
系统信息
Windows 10
python 3.6
cuda 10.1
tensorflow-gpu=
当我用整数张量初始化Variable op时,它似乎没有GPU内核。例如,运行:
with tf.device('/gpu:0'):
var = tf.Variable(initial_value=([[1,2],[3,4]]))
sess = tf.Session()
sess.run(var)
将导致例外情况:
tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'Variable': Could not satisfy expli
我试图在Ubuntu 16上安装tensorflow for python 2.7。我使用gpu,并在终端中得到以下消息:
pip install tensorflow-gpu
已满足的要求: tensorflow-gpu in /usr/local/lib/python3.5/dist-已满足的包要求: wheel>=0.26 in /usr/lib/python3 3/dist-包(来自tensorflow-gpu)要求已经满足: six>=1.10.0 in /usr/lib/python3 3/dist-packages(来自tensorflow-gpu)要求已经满足: n
我用python训练我的tf模型:
with sv.managed_session(master='') as sess:
with tf.device("/gpu:1"):#my systerm has 4 nvidia cards
并使用命令行对模型进行抽象:
freeze_graph.py --clear_devices False
在测试阶段,我将设备设置如下:
tensorflow::graph::SetDefaultDevice("/gpu:1", &tensorflow_graph);
但是有些东西是错误