Mailing List Archive

No module named _socket, on windows
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
--
http://mail.python.org/mailman/listinfo/python-list
Re: No module named _socket, on windows [ In reply to ]
En Mon, 04 Jan 2010 14:24:22 -0300, louisJ <louisrom1@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

--
http://mail.python.org/mailman/listinfo/python-list
Re: No module named _socket, on windows [ In reply 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.
--
http://mail.python.org/mailman/listinfo/python-list
Re: No module named _socket, on windows [ In reply to ]
On Monday, January 4, 2010 at 9:19:21?PM UTC+2, Gabriel Genellina wrote:
> 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


hi Gabriel,
i have the same problem and also pip is not installed for some reason, what can i do?
--
https://mail.python.org/mailman/listinfo/python-list
Re: No module named _socket, on windows [ In reply to ]
On 2023-02-25 at 15:58:35 -0800,
ofek shulberg <ofekshulberg@gmail.com> wrote:

> On Monday, January 4, 2010 at 9:19:21?PM UTC+2, Gabriel Genellina wrote:
> > 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
>
>
> hi Gabriel,
> i have the same problem and also pip is not installed for some reason, what can i do?

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.
--
https://mail.python.org/mailman/listinfo/python-list