[Tutor] Virtualenv Error
Jonathan Zacsh
jzacsh at gmail.com
Mon Apr 25 05:29:11 CEST 2011
On Sun, Apr 24, 2011 at 22:52, Malcolm Newsome
<malcolm.newsome at gmail.com> wrote:
> Hey All,
>
>
>
> Does anyone have any experience creating virtualenvs that can assist me with
> this error. I’m running windows 7, python 2.7.1 and virtualenv 1.6.
>
>
>
> I installed virtualenv using easy_install and there were no errors. I get
> the following error when trying to create a virtualenv.
>
>
>
> Any assistance is appreciated! Thanks!
>
>
>
>
>
> Microsoft Windows [Version 6.1.7601]
>
> Copyright (c) 2009 Microsoft Corporation. All rights reserved.
>
>
>
> C:\Users\Malcolm>virtualenv malcery
>
> New python executable in malcery\Scripts\python.exe
>
> Installing setuptools................done.
>
> Complete output from command C:\Users\Malcolm\malcery\Scripts\python.exe
> C:\Users\Malcolm\mal...sy_install-script.py
> C:\Users\Malcolm\Pyt...pport\pip-1.0.tar.gz:
>
> Traceback (most recent call last):
>
> File "C:\Users\Malcolm\malcery\Scripts\easy_install-script.py", line 8, in
> <module>
>
> load_entry_point('setuptools==0.6c11', 'console_scripts',
> 'easy_install')()
>
> File
> "C:\Users\Malcolm\malcery\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py",
> line 318, in load_entry_point
>
> return get_distribution(dist).load_entry_point(group, name)
>
> File
> "C:\Users\Malcolm\malcery\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py",
> line 2221, in load_entry_point
>
> return ep.load()
>
> File
> "C:\Users\Malcolm\malcery\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py",
> line 1954, in load
>
> entry = __import__(self.module_name, globals(),globals(), ['__name__'])
>
> File
> "C:\Users\Malcolm\malcery\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py",
> line 21, in <module>
>
>
>
> File
> "C:\Users\Malcolm\malcery\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\package_index.py",
> line 2, in <module>
>
> File "C:\Users\Malcolm\Python27\lib\urllib2.py", line 94, in <module>
>
> import httplib
>
> File "C:\Users\Malcolm\Python27\lib\httplib.py", line 71, in <module>
>
> import socket
>
> File "C:\Users\Malcolm\Python27\lib\socket.py", line 47, in <module>
>
> import _socket
>
> ImportError: No module named _socket
>
> ----------------------------------------
>
> Traceback (most recent call last):
>
> File "C:\Users\Malcolm\Python27\Scripts\virtualenv-script.py", line 8, in
> <module>
>
> load_entry_point('virtualenv==1.6', 'console_scripts', 'virtualenv')()
>
> File
> "C:\Users\Malcolm\Python27\lib\site-packages\virtualenv-1.6-py2.7.egg\virtualenv.py",
> line 745, in main
>
> prompt=options.prompt)
>
> File
> "C:\Users\Malcolm\Python27\lib\site-packages\virtualenv-1.6-py2.7.egg\virtualenv.py",
> line 845, in create_environment
>
> install_pip(py_executable)
>
> File
> "C:\Users\Malcolm\Python27\lib\site-packages\virtualenv-1.6-py2.7.egg\virtualenv.py",
> line 602, in install_pip
>
> filter_stdout=_filter_setup)
>
> File
> "C:\Users\Malcolm\Python27\lib\site-packages\virtualenv-1.6-py2.7.egg\virtualenv.py",
> line 813, in call_subprocess
>
> % (cmd_desc, proc.returncode))
>
> OSError: Command C:\Users\Malcolm\malcery\Scripts\python.exe
> C:\Users\Malcolm\mal...sy_install-script.py
> C:\Users\Malcolm\Pyt...pport\pip-1.0.tar.gz failed with error code 1
>
>
>
> C:\Users\Malcolm>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
Have you tried using pip instead of easy_install? Its supposed to the
"newer, better" approach.
http://www.pip-installer.org/
I don't know that it matters. I'm new to python myself.
--
Jonathan Zacsh
More information about the Tutor
mailing list