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

No module named _socket, on windows

3,276 views
Skip to first unread message

louisJ

unread,
Jan 4, 2010, 12:24:22 PM1/4/10
to
Hi

I installed python 2.6 (from python.org) for windows XP, and then
Pylab.
When I type "import pylab" in a python shell it shows the error:

ImportError: No module named _socket


Any idea what can I do to make this work?

thank you

Gabriel Genellina

unread,
Jan 4, 2010, 2:19:21 PM1/4/10
to pytho...@python.org
En Mon, 04 Jan 2010 14:24:22 -0300, louisJ <loui...@gmail.com> escribi�:

> I installed python 2.6 (from python.org) for windows XP, and then
> Pylab.
> When I type "import pylab" in a python shell it shows the error:
>
> ImportError: No module named _socket

Open the Python command line, type the following lines, and tell us what
happens:

Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket._socket
<module '_socket' from 'd:\apps\python26\DLLs\_socket.pyd'>


--
Gabriel Genellina

louisJ

unread,
Jan 4, 2010, 4:41:20 PM1/4/10
to
I don't know what happened or what I did in the meantime but it works
now...no more errors.

Gabriel, for information now I have:
>>> import socket
>>> socket._socket
<module '_socket' from 'C:\Python26\DLLs\_socket.pyd'>

Thank you anyway.

ofek shulberg

unread,
Feb 25, 2023, 6:58:45 PM2/25/23
to
hi Gabriel,
i have the same problem and also pip is not installed for some reason, what can i do?

2QdxY4Rz...@potatochowder.com

unread,
Feb 26, 2023, 4:09:21 AM2/26/23
to
On 2023-02-25 at 15:58:35 -0800,
Gabriel's post is thirteen years old and against a truly ancient version
of Python (on Windows XP, no less). Please repost your question.
Include the OS and the version of Python you're using, and a copy/paste
of the error(s) you're receiving.
0 new messages