首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >安装TensorFlow码头的问题

安装TensorFlow码头的问题
EN

Stack Overflow用户
提问于 2018-08-30 06:42:29
回答 1查看 0关注 0票数 0

所以我在我的环境中运行了requirements.txt,工作得很好,没有问题然后我去构建一个docker环境并得到了这个错误:

找不到满足要求的版本tensorflow == 1.10.1(来自-r requirements.txt(第26行))(来自版本:)没有找到tensorflow的匹配分布== 1.10.1(from -r requirements.txt (第26行))

我的requirements.txt文件:

absl-py==0.4.0
astor==0.7.1
certifi==2018.8.24
chardet==3.0.4
click==6.7
Flask==1.0.2
Flask-API==1.0
Flask-Cors==3.0.6
fleep==1.0.1
gast==0.2.0
grpcio==1.14.1
idna==2.7
itsdangerous==0.24
Jinja2==2.10
Markdown==2.6.11
MarkupSafe==1.0
numpy==1.14.5
pdf2image==0.1.14
Pillow==5.2.0
protobuf==3.6.1
pycryptodome==3.6.6
PyPDF2==1.26.0
requests==2.19.1
six==1.11.0
tensorboard==1.10.0
tensorflow==1.10.1
termcolor==1.1.0
urllib3==1.23
Werkzeug==0.14.1

我的Dockerfile:

FROM python:3
WORKDIR /class
COPY . .
RUN pip3 install -r requirements.txt
RUN apt-get update
RUN apt install pciutils -y

CMD ["python3","runner.py"]

我尝试了所有我能想到的包括安装使用链接pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.1-cp35-cp35m-linux_x86_64.whl我确保python版本是正确但我一直得到这个错误tensorflow-1.10.1-cp35-cp35m-linux_x86_64.whl is not a supported wheel on this platform. 我也尝试了不同的tensorflow版本,我试图直接从docker shell安装没有任何作用。

解释:

(env) user@some:~/projects/myproject$ python
Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
[GCC 5.4.0 2016060] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()
('64bit', 'ELF')
>>> 
EN

回答 1

Stack Overflow用户

发布于 2018-08-30 16:35:54

FROM python:3 目前结果是python 3.7 - 这篇文章中没有3.7的张量轮。

您可以选择通过执行降级python FROM python:3.6或跟踪tensorflow.org上源代码的安装。

如果可以,我会去蟒蛇3.6路线。

PS:cp35是for python 3.5,小心点。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100002503

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档