Which python version do I use with "virtualenv"?

OldGrantonian OldGrantonian at googlemail.com
Thu May 7 21:53:38 CEST 2009


On May 7, 12:34 pm, Duncan Booth <duncan.bo... at invalid.invalid> wrote:
> OldGrantonian <OldGranton... at googlemail.com> wrote:
> > Thanks to both Steven D'Aprano and Ant :)
>
> >>>  Sounds like you've downloaded the Python 2.5 version of Easy Install.
>
> > There's no Python 2.6 version of EasyInstall :(
>
> I wonder what I've been running then?
>
>
>
> > For 2.5, there is:
>
> > setuptools-0.6c9.win32-py2.5.exe
>
> > But for 2.6, it's:
>
> > setuptools-0.6c9-py2.6.egg
>
> > For any other egg file, I would use EasyInstall, but I don't think I
> > can use EasyInstall to install EasyInstall :)
>
> No, but you can use ez_setup.
>
> Go tohttp://peak.telecommunity.com/dist/ez_setup.pyand save the content
> of that file as ez_setup.py (cut and paste into your favourite editor may
> be the simplest way) then run it with your chosen Python. It will find and
> install the appropriate version of easy install.
>
> --
> Duncan Boothhttp://kupuguy.blogspot.com


ez_setup worked fine. Thanks for that :)

According to the web site:

http://pypi.python.org/pypi/virtualenv

the next step is to do:

virtualenv ENV

If I do that, I get the following message:

--------------------------------

C:\Python26\Scripts>virtualenv ENV
Traceback (most recent call last):
  File "C:\Python26\Scripts\virtualenv-script.py", line 8, in <module>
    load_entry_point('virtualenv==1.3.3', 'console_scripts',
'virtualenv')()
  File "C:\Python26\lib\site-packages\virtualenv-1.3.3-py2.6.egg
\virtualenv.py", line 420
    unzip_setuptools=options.unzip_setuptools)
  File "C:\Python26\lib\site-packages\virtualenv-1.3.3-py2.6.egg
\virtualenv.py", line 499
    home_dir, lib_dir, inc_dir, bin_dir = path_locations(home_dir)
  File "C:\Python26\lib\site-packages\virtualenv-1.3.3-py2.6.egg
\virtualenv.py", line 521
    import win32api
ImportError: No module named win32api

C:\Python26\Scripts>

--------------------------------

Any advice?



More information about the Python-list mailing list