Error "cannot import name 'process_tweet' from 'utils'"

Hey, who can help me with the error “cannot import name ‘process_tweet’ from ‘utils’”? I pip installed utils.

Hi @xb2023

You don’t have to pip install the “utils”. There is a file named in which resides the function process_tweet.

In the Assignment notebook the import is done for you and you don’t have to install anything.

If you experimenting locally on your computer, you have to have the file (copy of in the same directory and you do not pip install the utils library.


This is helpful. Thank you very much. I work locally on my computer. Can you please let me know how to access a copy of ? Thanks.

You can download it by File → Open, then choose the file and “download” button appears (for a single file). Here is a post that show you more options.