App Engine标准环境中的Python 3快速入门

时间:2019-03-20 04:01:25

标签: google-app-engine

我正在按照此处的说明进行操作: https://cloud.google.com/appengine/docs/standard/python3/quickstart

在此行: gcloud组件安装app-engine-python3

并得到错误: 错误:(gcloud.components.install)以下组件未知[app-engine-python3]

我找不到有关此错误的任何文档。有人知道解决方案吗?

1 个答案:

答案 0 :(得分:0)

此快速入门似乎是一个问题,我尝试重现它,但遇到了相同的错误。

我通过运行以下命令搜索组件:

	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
	<link rel="stylesheet" href="https://idangero.us/swiper/dist/css/swiper.min.css">
<div class="scroll-wrapper swiper-container">
		<ul class="nav nav-tabs swiper-wrapper"> 
			<li class="swiper-slide"><a data-toggle="tab" href="#home" class="active">Natashia</a></li>
			<li class="swiper-slide"><a data-toggle="tab" href="#menu1">Daphne</a></li>
			<li class="swiper-slide"><a data-toggle="tab" href="#menu2">Brenton</a></li>
			<li class="swiper-slide"><a data-toggle="tab" href="#menu3">Gala</a></li>
			<li class="swiper-slide"><a data-toggle="tab" href="#menu4">Christen</a></li>
			<li class="swiper-slide"><a data-toggle="tab" href="#menu5">Howard</a></li>
			<li class="swiper-slide"><a data-toggle="tab" href="#menu6">Casey</a></li>
		</ul>
		<div class="swiper-button-prev"></div>
		<div class="swiper-button-next"></div>
	</div>

	<div class="tab-content">
	  <div id="home" class="tab-pane fade in active">
	    <h3>HOME</h3>
	    <p>Some content.</p>
	  </div>
	  <div id="menu1" class="tab-pane fade">
	    <h3>Menu 1</h3>
	    <p>Some content in menu 1.</p>
	  </div>
	  <div id="menu2" class="tab-pane fade">
	    <h3>Menu 2</h3>
	    <p>Some content in menu 2.</p>
	  </div>
	  <div id="menu3" class="tab-pane fade">
	    <h3>Menu 2</h3>
	    <p>Some content in menu 2.</p>
	  </div>
	  <div id="menu4" class="tab-pane fade">
	    <h3>Menu 2</h3>
	    <p>Some content in menu 2.</p>
	  </div>
	  <div id="menu5" class="tab-pane fade">
	    <h3>Menu 2</h3>
	    <p>Some content in menu 2.</p>
	  </div>
	  <div id="menu6" class="tab-pane fade">
	    <h3>Menu 2</h3>
	    <p>Some content in menu 2.</p>
	  </div>
	</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<script src="https://idangero.us/swiper/dist/js/swiper.min.js"></script>

最新的Cloud SDK版本(239.0.0)没有gcloud components list 组件。

无论如何,app-engine-python3组件已经具有Python3。因此,要使用Python 3,您必须安装此组件:

app-engine-python

然后使用gcloud components install app-engine-python 命令而不是python3命令,例如:

python