installing setuptools on Windows custom python install

Discussion in 'Python' started by Eric Frederich, Apr 18, 2011.

  1. Hello,

    I have a python installation that I built myself using Visual Studio 2005.
    I need this version because I need to link Python bindings to a 3rd
    party library that uses VS 2005.

    I want to get setuptools installed to this Python installation but the
    installer won't find my version of Python even if it is on the PATH
    and PYTHONHOME is set.
    So, I am trying to build setuptools but when I run "python setup.py
    install" I get the following error.
    Any ideas either on how to get the installer to find my installation
    or on how to get this to compile?

    F:\pyside\setuptools-0.6c11>python setup.py install
    running install
    Traceback (most recent call last):
    File "setup.py", line 94, in <module>
    scripts = scripts,
    File "F:\My_Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
    File "F:\My_Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
    File "F:\My_Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
    File "F:\pyside\setuptools-0.6c11\setuptools\command\install.py",
    line 76, in run
    self.do_egg_install()
    File "F:\pyside\setuptools-0.6c11\setuptools\command\install.py",
    line 85, in do_egg_install
    easy_install = self.distribution.get_command_class('easy_install')
    File "F:\pyside\setuptools-0.6c11\setuptools\dist.py", line 395, in
    get_command_class
    self.cmdclass[command] = cmdclass = ep.load()
    File "F:\pyside\setuptools-0.6c11\pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
    File "F:\pyside\setuptools-0.6c11\setuptools\command\easy_install.py",
    line 21, in <module>
    from setuptools.package_index import PackageIndex, parse_bdist_wininst
    File "F:\pyside\setuptools-0.6c11\setuptools\package_index.py", line
    2, in <module>
    import sys, os.path, re, urlparse, urllib2, shutil, random,
    socket, cStringIO
    File "F:\My_Python27\lib\urllib2.py", line 94, in <module>
    import httplib
    File "F:\My_Python27\lib\httplib.py", line 71, in <module>
    import socket
    File "F:\My_Python27\lib\socket.py", line 47, in <module>
    import _socket
    ImportError: No module named _socket

    F:\pyside\setuptools-0.6c11>
    Eric Frederich, Apr 18, 2011
    #1
    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. Replies:
    0
    Views:
    423
  2. Thorsten Kampe
    Replies:
    7
    Views:
    391
    Robert Kern
    Nov 26, 2007
  3. Hartmut Goebel

    Install man-pages with distutils/setuptools

    Hartmut Goebel, May 17, 2008, in forum: Python
    Replies:
    1
    Views:
    683
    Sebastian 'lunar' Wiesner
    May 17, 2008
  4. Gabriel Genellina

    Re: Easy install / setuptools

    Gabriel Genellina, Jun 3, 2008, in forum: Python
    Replies:
    1
    Views:
    378
    John Nagle
    Jun 3, 2008
  5. Rolf
    Replies:
    3
    Views:
    1,933
Loading...

Share This Page