Unable to import module in Google Colab after installing

给你一囗甜甜゛ 提交于 2019-12-05 18:31:01

I just got the solution after posting an issue to the repository. The solution was simple, all I needed to do was restart the Colab kernel (Restart Runtime option in the Runtime tab) after !pip -e install bird-or-bicycle Apparently that is required to pick up the newly installed package.

If you look at the bird-or-bicycle docs, you see that there is a data download step required after you pip install.

If you follow the instructions there and run the following in a notebook cell, then the import will work:

!git clone https://github.com/google/unrestricted-adversarial-examples
!pip install -e unrestricted-adversarial-examples/bird-or-bicycle
!bird-or-bicycle-download
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!