Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where is "urllib2" module in windows python3.1.1?

20 views
Skip to first unread message

Hidekazu IWAKI

unread,
Jan 1, 2010, 8:46:36 AM1/1/10
to pytho...@python.org
Hi;
I'd like to import "urllib2" in windows python 3.1.1, but I'm not able to
do it.
So, I researched the library directory; the result is following:

....
....
2009/06/07 19:11 61,749 unittest.py
2010/01/01 22:18 <DIR> urllib
2007/12/06 09:48 6,318 uu.py
2008/11/30 20:40 21,534 uuid.py
....
....

Although it has "urllib", it doesn't have "urllib2". I guess to download
and install the module. But I can't find "urllib2" module for windows
with google.

I wonder if it would be possible for me to give the location?

Duncan Booth

unread,
Jan 1, 2010, 8:57:03 AM1/1/10
to
Hidekazu IWAKI <iw...@iwakihidekazu.net> wrote:

> Hi;
> I'd like to import "urllib2" in windows python 3.1.1, but I'm not able to
> do it.

Python 3 doesn't have a urllib2 module; use the urllib package instead.

See http://www.python.org/dev/peps/pep-3108/#urllib-package

Lie Ryan

unread,
Jan 1, 2010, 9:35:14 AM1/1/10
to
On 1/2/2010 12:46 AM, Hidekazu IWAKI wrote:
> Hi;
> I'd like to import "urllib2" in windows python 3.1.1, but I'm not able to
> do it.
> So, I researched the library directory; the result is following:
>
> .....
> .....

> 2009/06/07 19:11 61,749 unittest.py
> 2010/01/01 22:18<DIR> urllib
> 2007/12/06 09:48 6,318 uu.py
> 2008/11/30 20:40 21,534 uuid.py
> .....
> .....

>
> Although it has "urllib", it doesn't have "urllib2". I guess to download
> and install the module. But I can't find "urllib2" module for windows
> with google.
>
> I wonder if it would be possible for me to give the location?

urllib2 is merged into urllib in python3.

Hidekazu IWAKI

unread,
Jan 2, 2010, 5:55:54 PM1/2/10
to pytho...@python.org
Hi.

Thank you for the answers.
Oh, sorry. It was one of the changes from .2.x to 3.x. I didn't know.
There are really important and a lot of changes.

Thank you!

> --
> http://mail.python.org/mailman/listinfo/python-list

0 new messages