我正在尝试按照本指南在TensorFlow上运行Win7x64:
https://www.tensorflow.org/install/pip
一切顺利,直到3. Install the TensorFlow pip package
当我执行“ python
”以查看版本时,我得到以下信息:
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
当我执行“ pip install tensorflow
”时,我得到:
Could not find a version that satisfies the requirement of tensorflow (from versions: )
No matching distribution found for tensorflow
如果我尝试“ python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.2.1-cp35-cp35m-win_amd64.whl
”,我会得到:
tensorflow-1.2.1-cp55-cp35m-win_amd64.whl is not a supported wheel on this platform.
请帮助我了解我在做什么错或为什么不起作用?如何使其工作?非常感谢你!
答案 0 :(得分:0)
您有不受支持的Python版本。 Tensorflow当前仅支持Python 3.6及更低版本,而不支持3.7,即使您设法安装了它,您也会遇到问题,因为Python 3.7将#Create path variables
$olddir = "C:\Data\Master"
$newdir = "C:\Users\Clone"
#Get the list of files in oldFolder
$oldfiles = Get-ChildItem -Recurse -path $olddir | Where-Object {-not ($_.PSIsContainer)}
#get the list of files in new folder
$newfiles = Get-ChildItem -Recurse -path $newdir | Where-Object {-not ($_.PSIsContainer)}
Compare-Object $newfiles $oldfiles -Property LastWriteTime -Passthru | sort LastWriteTime | foreach {
$fl = (($_.Fullname).ToString().Replace("$olddir","$newdir"))
$dir = Split-Path $fl
if ($fl -notlike '*\obj\Release\*'){
if( $_.Fullname -ne $fl){
If (!(Test-Path $dir)){
mkdir $dir
}
copy-item $_.Fullname $fl -Force
Write-Host "From to --> " $_.Fullname "TO --> " $fl
}}
}
用作关键字,并且许多库(例如Tensorflow)将其用于变量名。为了在您的系统上执行此操作,您需要降级到3.6,在GitHub上实际上有一个线程具有有关此问题的疑难解答步骤:https://github.com/tensorflow/tensorflow/issues/17022