我正试图在我的Mac OS X Yosemite上获得张量流。我以多种方式尝试过,所有这些都会导致错误。
方法#1:使用virtualenv。当我到达
pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
我得到了
BadZipFile: File is not a zip file
方法#2:使用Anaconda。再次,当我在anaconda环境中时,
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl
我收到一个错误,虽然这次是另一个错误:
SLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
方法#3:使用bazel。许多依赖性问题 - 例如,
bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
... no such package '@jpeg_archive// ...
... no such package '@png_archive// ...
等
有没有人能够成功地在mac上构建张量流(它位于公司防火墙后面,顺便说一下 - 也许这就是问题的一部分)。任何见解都会非常感激。
谢谢!
纳塔利娅
答案 0 :(得分:0)
您是否尝试将安全保护移至<script>
function start(){
div = "<?php $select = mysql_query('SELECT COUNT(*) AS num FROM tbl_timer',$connection); while($row = mysql_fetch_array($select)){ $num = $row['num']; } ?>";
var num = "<?php echo $num; ?>";
alert(num);
if(num == 0)
{
document.getElementById("form1").innerHTML = '<input id="time1" onChange="alert(\'Hallo\')" value="720"/>';
}
if(num !== '0')
{
var div = "<?php $select = mysql_query('SELECT COUNT(*) AS nu FROM tbl_timer',$connection); while($row = mysql_fetch_array($select)){ $nu = $row['nu']; } if($nu !== '0'){$select = mysql_query('SELECT * FROM tbl_timer',$connection); while($row = mysql_fetch_array($select)){ $time = $row['time']; $tc = $row['utc']; }}else{$time = 0; $tc= 0;} ?>";
var time = "<?php echo $time; ?>";
alert(time);
document.getElementById("form1").innerHTML = '<input id="time" value="'+time+'"/>';
document.getElementById("h").innerHTML = ' <button id="pt" onclick="pause()">Pause</button>';
secondPassed();
}
}
</script>
,而不是像http
那样(同时,您也应该尝试检查sudo pip install --upgrade http://...
版本)