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

Discussion in 'Python' started by Hidekazu IWAKI, Jan 1, 2010.

  1. 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?
    Hidekazu IWAKI, Jan 1, 2010
    #1
    1. Advertising

  2. Hidekazu IWAKI

    Lie Ryan Guest

    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.
    Lie Ryan, Jan 1, 2010
    #2
    1. Advertising

  3. 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!

    At 01 Jan 2010 13:57:03 +0000 Duncan Booth wrote:
    > Hidekazu IWAKI <> 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
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    Hidekazu IWAKI, Jan 2, 2010
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Josef Cihal
    Replies:
    0
    Views:
    727
    Josef Cihal
    Sep 5, 2005
  2. Timothy Madden

    python3 module for dbus ?

    Timothy Madden, May 19, 2009, in forum: Python
    Replies:
    3
    Views:
    618
  3. Neal Becker
    Replies:
    0
    Views:
    248
    Neal Becker
    Oct 20, 2010
  4. Andrew Berg
    Replies:
    0
    Views:
    323
    Andrew Berg
    Jun 16, 2012
  5. Irmen de Jong
    Replies:
    2
    Views:
    198
    Irmen de Jong
    Dec 7, 2012
Loading...

Share This Page