我用的是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))
我找到了关于python3的所有信息,但却找不到关于python2的任何信息。
> pip install --upgrade 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
我跟踪和安装了数据自动化系统,我得到:
> nvcc -V
nvcc
我的项目需要tensorflow==1.11.0,但当我尝试安装它时,我得到了:
pip install tensorflow-gpu==1.11.0
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==1.11.0 (from versions: 1.13.1, 1.13.2, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0r
我正在创建一个conda环境,仅用于从tensorflow-gpu通道使用conda-forge包。
conda create -n tst -c conda-forge tensorflow-gpu
这将导致安装tensorflow-gpu 和 tensorflow包:
The following NEW packages will be INSTALLED:
_tflow_1100_select: 0.0.1-gpu
...
tensorboard: 1.10.0-py36_0 conda-forge
tensorflow:
在升级了我的ubuntu服务器16.04之后,我无法为python3.6安装带有pip3的模块。这就是我尝试为python3安装tensorflow-gpu时得到的结果:
root@amax:~# pip3 install tensorflow-gpu
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting tensorflow-gpu
Could not fetch URL https://pypi.python
在我的requirements.txt中,我有: tensorflow-gpu==1.13.1 当我跑的时候: pip3 install -r requirements.txt 我看到了这个错误: Collecting tensorflow-gpu==1.13.1 (from -r requirements.txt (line 35))
Could not find a version that satisfies the requirement tensorflow-gpu==1.13.1 (from -r requirements.txt (line 35)) (from versi
这个错误似乎发生在过去不同的上下文中,,但我没有直接转储模型--我使用的是ModelCheckpoint回调。知道会出什么问题吗?
信息:
Keras版本2.0.8
Tensorflow版本1.3.0
Python 3.6
重现错误的最小示例:
from keras.layers import Input, Lambda, Dense
from keras.models import Model
from keras.callbacks import ModelCheckpoint
from keras.optimizers import Adam
import tenso
好吧,我想8个小时已经足够我自己解决这个问题了,所以我会问大家:
我在jupyterhub和Jupyter notebook之外的名为“tensorflow”的虚拟环境中运行tensorflow-gpu 1.1.0。也就是说,我可以导入tensorflow并使用gpu运行脚本。
当我在我的tensorflow virtualenv中使用jupyterhub时,Jupyter似乎无法“看到”tensorflow。我得到以下错误:
ImportError: libcublas.so.8.0: cannot open shared object file: No such file or direc