使用Google Cloud SDK设置本地环境

我是Python的新手。尝试使用此Google Cloud Python tutorial。我被卡在说“安装依赖项”的部分,我应该在哪里运行此virtualenv -p python3 env和其他代码?

试图在只是表示“无法识别的命令”的特定文件夹内的Google Cloud SDK Shell中运行它们

在设置本地环境方面遇到困难,有人可以帮忙吗?

qch197999 回答:使用Google Cloud SDK设置本地环境

在某些时候,这是本教程中的命令:

 git clone https://github.com/GoogleCloudPlatform/getting-started-python.git

cd到包含requirements.txt文件的目录: 然后运行(假设您已经在计算机中安装了virtualevn):

virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt
,

Tutorial you are referring to是部署复杂的Python应用程序的一部分。假设您已经完成了安装说明。

  

此页面是多页教程的一部分。从头开始   并阅读设置说明,请转到Python Bookshelf app

在开始之前,您需要阅读安装说明。再次假设您已经设置了Python开发环境。如果没有,请按照Setting Up a Python Development Environment

本文链接:https://www.f2er.com/3157877.html

大家都在问