简体   繁体   English

如何将 Google Cloud bigquery 安装到 python?

[英]How to install Google Cloud bigquery to python?

I'm very new to python just for context.我对 python 很陌生,只是为了上下文。

I'm trying to download Google Cloud Bigquery to Python, but I'm running into errors.我正在尝试将 Google Cloud Bigquery 下载到 Python,但我遇到了错误。

I'm following directions from here: https://pypi.org/project/google-cloud-bigquery/ Which essentially is telling me to download it using the following:我从这里遵循指示: https://pypi.org/project/google-cloud-bigquery/这基本上是告诉我使用以下内容下载它:

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-bigquery

I copied and pasted this in my anaconda prompt.我将其复制并粘贴到我的 anaconda 提示符中。 I was able to run only the first line of code ( pip install virtualenv )我只能运行第一行代码( pip install virtualenv

The second and the third says "The syntax of the command is incorrect."第二个和第三个说“命令的语法不正确”。

在此处输入图像描述

In this context <your-env> is a placeholder for the name you want to assign to the new virtual environment.在这种情况下<your-env>是您要分配给新虚拟环境的名称的占位符。 Try:尝试:

virtualenv myenv
myenv\Scripts\activate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM