简体   繁体   中英

How to fix syntax error while importing google.datalab in python

I am trying to import bigquery from datalab package in python 3.7.*, but it is throwing invalid syntax error.

I tried installing the google-cloud-datalab package but getting the error saying ERROR:

No matching distribution found for google-cloud-datalab

I am trying to import the below packages

from google.datalab.ml import TensorBoard

import datalab.bigquery as bq.   

No matching distribution found for google-cloud-datalab means the package does not support python 3.7 . Maybe try python 3.6

However, you might have the wrong package name
Try pip install datalab

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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