google-colab import 시 오류 해결(AttributeError: module 'IPython.utils.traitlets' has no attribute 'Unicode')
본문 바로가기
AI 구현/환경 세팅

google-colab import 시 오류 해결(AttributeError: module 'IPython.utils.traitlets' has no attribute 'Unicode')

by NEWSUN* 2023. 9. 30.

Visual Studio Code에서 google-colab을 import 할 때 뜬 에러이다. 찾아보니, 일반적인 파이썬 인터프리터 환경이 아닌 ipython 환경인 jupyter notebook 또는 Colab에서 실행하면 된다고 한다.

The library google-colab is not designed to run in a normal Python REPL, which means that you have to run this in an ipython environment like Jupiter notebooks or colab rather than the python interpreter directly.

 

Reference

https://github.com/tensorflow/cloud/issues/346

 

Can't use google-colab · Issue #346 · tensorflow/cloud

While running the following code, I get an error: import datetime import os import tensorflow as tf import tensorflow_cloud as tfc import tensorflow_datasets as tfds from tensorflow import keras fr...

github.com