Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

I want to use the urlparse package. But it seems that the python3.4.1 is not able to find the module.

When I import urlparse, it is giving me this error:

importError: no 'module' named ulrparse

1 Answer

0 votes
by (108k points)

Please be informed that the urlparse in Python 2.7.11 was renamed to urllib.parse in Python 3. So, if you have a code such as:

 urlparse import urljoin 

I suggest you change it to: 

from urllib.parse import urljoin

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...