簡體   English   中英

Ubuntu16.04 python3.6.5無法安裝TensorFlow

[英]Ubuntu16.04 python3.6.5 cannot install tensorflow

嘗試在ubuntu桌面上安裝tensorflow cpu版本時遇到問題。

我嘗試了兩個:

1. pip3 install tensorflow

錯誤在這里:

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

2. pip3 install tensorflow-1.8.0-cp36-cp36m-manylinux1_x86_64.whl

tensorflow-1.8.0-cp36-cp36m-manylinux1_x86_64.whl is not a supported wheel on this platform.

我在Google上搜索了很多,發現可能與pip版本,體系結構等有關。

但是,這些在我的桌面上似乎是正確的,這是我的檢查:

148 wni@wni-GE62-2QC:~⟫ uname -i
x86_64
wni@wni-GE62-2QC:~⟫ 
wni@wni-GE62-2QC:~⟫ cat /etc/issue
Ubuntu 16.04.4 LTS \n \l

wni@wni-GE62-2QC:~⟫ 
wni@wni-GE62-2QC:~⟫ pip3 -V
pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
wni@wni-GE62-2QC:~⟫ 
wni@wni-GE62-2QC:~⟫ 
wni@wni-GE62-2QC:~⟫ python
Python 3.6.5 (default, May 12 2018, 17:43:57) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()
('64bit', 'ELF')
>>> 
>>> import struct
>>> struct.calcsize('P')
8

更重要的是,pip3 search tensorflow可以找到tensorflow 1.8.0。

嗯...有人知道發生了什么嗎?

謝謝。

[編輯]通過從源代碼重新安裝Python3.6.5解決。 第一次的原因仍然未知。

是的tensorflow,可怕的東西要安裝! 最好使用虛擬環境,並使用滿足當地要求的tf-nightly軟件包(因為它對其他各種軟件包的版本都感到恐懼,所以很容易想到praw)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM