Reputation: 1
So I'm working in Linux and I need to install parse for python3 but always get the same error: ImportError: No module named parse. I tried it:
Upvotes: 0
Views: 523
Reputation: 16496
urllib
is in standard library, no need to install. It works ok for me in python 3.x. Probably you have named your script(the .py file you are running) to urllib
. This is a common mistake, rename it to something else then it works.
It could happen even if you have a python file named urllib
in your directory... because when you run your script, python will automatically add it's directory to sys.path
(where python searched for modules/packages). So it gets reached sooner than the original urllib
which is in the standard library.
Search that file in your directory and delete it.
Upvotes: 1