Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6375

Cannot use google.colab because it cannot be found (ModuleNotFoundError)

$
0
0

I can't run google colab, is there a solution?

I'm trying to run '!pip3 install google' on kaggle's kernel and use the functionality of from 'google.colab import files' to upload json file 'kaggle.json'.

If it can't be uploaded, i can't run the api using 'from kaggle.competitions import twosigmanews'.

### The google library is installed here.! ls -la /opt/conda/lib/python3.7/site-packages/googletotal 76drwxr-xr-x 1 root root 4096 Jul  6 13:38 .drwxr-xr-x 1 root root 4096 Aug 31 22:53 ..drwxr-xr-x 3 root root 4096 Jun 19 05:33 _async_resumable_mediadrwxr-xr-x 3 root root 4096 Jun 19 05:33 apidrwxr-xr-x 6 root root 4096 Jun 19 05:33 api_coredrwxr-xr-x 6 root root 4096 Jun 19 05:33 authdrwxr-xr-x 1 root root 4096 Jul  6 13:23 clouddrwxr-xr-x 3 root root 4096 Jun 19 05:33 gapicdrwxr-xr-x 3 root root 4096 Jun 19 05:33 iamdrwxr-xr-x 3 root root 4096 Jun 19 05:33 loggingdrwxr-xr-x 3 root root 4096 Jun 19 05:33 longrunningdrwxr-xr-x 3 root root 4096 Jun 19 05:33 oauth2drwxr-xr-x 7 root root 4096 Jul  6 13:38 protobufdrwxr-xr-x 4 root root 4096 Jun 19 05:33 resumable_mediadrwxr-xr-x 4 root root 4096 Jun 19 05:33 rpcdrwxr-xr-x 3 root root 4096 Jun 19 05:33 type############################################Execution of the next cell will fail.from google.colab import filesfiles.upload()---------------------------------------------------------------------------ModuleNotFoundError                       Traceback (most recent call last)<ipython-input-23-5c2e8a8d365b> in <module>----> 1 from google.colab import files      2 files.upload()ModuleNotFoundError: No module named 'google.colab'

Viewing all articles
Browse latest Browse all 6375


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>