Re: Which python version do I use with "virtualenv"?
On May 7, 9:33 pm, Duncan Booth wrote: > OldGrantonian wrote: > > Where do I find the win32 extensions? > > http://www.google.com/search?q=python+win32 > > Any of the first 4 hits should help. Success :) Many thanks to all responders in this thread :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Which python version do I use with "virtualenv"?
On May 7, 9:33 pm, Duncan Booth wrote: > OldGrantonian wrote: > > Where do I find the win32 extensions? > > http://www.google.com/search?q=python+win32 > > Any of the first 4 hits should help. Success :) Many thanks to all responders in this thread :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Which python version do I use with "virtualenv"?
On May 7, 9:03 pm, Emile van Sebille wrote: > On 5/7/2009 12:53 PM OldGrantonian said... > > > > > On May 7, 12:34 pm, Duncan Booth wrote: > >> OldGrantonian 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.pyandsave 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 > > 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? > > Install the win32 extensions or install the 2.6 Activestate release. > > Emile Thanks for the response :) Where do I find the win32 extensions? -- http://mail.python.org/mailman/listinfo/python-list
Re: Which python version do I use with "virtualenv"?
On May 7, 12:34 pm, Duncan Booth wrote: > OldGrantonian 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 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? -- http://mail.python.org/mailman/listinfo/python-list
Re: Which python version do I use with "virtualenv"?
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 :( 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 :) -- http://mail.python.org/mailman/listinfo/python-list
Which python version do I use with "virtualenv"?
I have Windows Vista Home Premium. As a non-techy, I want to use "virtualenv" I had Python 2.6 on my laptop. I needed "easyinstall" to install virtualenv. During installation of easyinstall, I got the message "Python 2.5 not found" So I installed Python 2.5, then installed virtualenv So I now have c:\Python 2.5 and c:\Python 2.6 On the virtualenv web site, the instructions for use are: $ python virtualenv.py ENV My question is, which "python" should I use on this command line: 2.5 or 2.6? BTW: I am currently running a Python app using 2.6. I want to install a beta upagrade of this app, without interfering with my current setup, so the app developer recommends using virtualenv. -- http://mail.python.org/mailman/listinfo/python-list
Re: Separate Windows versions of Python
Many thanks for the very detailed answer :) I will go ahead right now and implement all your suggestions. On May 6, 4:35 pm, Scott David Daniels wrote: > OldGrantonian wrote: > > I use Windows Vista Home Premium. I have Python 2.6 currently > > installed. I'm not a techy. > > > I want to use "virtualenv". When I try to install the latest version > > of virtualenv for Windows, I get the message that Python 2.5 is not > > found. > > > How do I install Python 2.5 (or anything else except 2.6) so that I > > use the correct version of Python at the correct time. > > > For example, do I need to edit the "path" variable each time that I > > want to change versions from 2.5 to 2.6? > > On windows, major versions (..., 2.5, 2.6, 2.7, , 3.0, 3.1, ...) > can coexist quite successfully. Find and run an installer for the > latest version of 2.5 (2.5.4, I believe) on the Python download page. > That will make 2.5 your default Python. To switch the easiest way > (for you) is uninstall the version of python you want to be the > default, then install it again (making it the last one installed). > This suggests keeping installer binaries for all version you are > using. Note that the this uninstall-reinstall should not affect > you loaded Python packages that you have installed separately. > To simply run a python program with a different python (but not > change the default), open a command window (run program / cmd), > sometimes called a "terminal window" and use command: > C:\> C:\Python24\python program.py # command line version > or > C:\> C:\Python24\pythonw program.pyw # gui verson > You can also change shortcuts to refer to specific Python versions. > > Of course, the different Python versions should also be available > on your start menu. > > However, Starting with Python 2.6, if you want user-specific > installation, you can also create and put things in (for example), > C:\Documents and Settings\USER\Application Data\ > Python\Python26\site-packages > where you replace USER with the user name in question. > > If you are not planning to do a lot of switching, that might be > enough for you. The base directory is also called %APPDATA% on > a command line or via os.path.expandvars. Once you have created > this site-packages directory, Python 2.6 and later will use it to > find .pth, .py, .pyw, and .pyd files (as well as .pyc and .pyo > files). You may find changing your personal site-packages directory > (and/or a .pth therein that you manipulate) will address the issues > that you are planning to solve with virtualenv. > > Sorry for the long-winded answer. > --Scott David Daniels > scott.dani...@acm.org > > in addition to the common site-packages directory on -- http://mail.python.org/mailman/listinfo/python-list
Separate Windows versions of Python
I use Windows Vista Home Premium. I have Python 2.6 currently installed. I'm not a techy. I want to use "virtualenv". When I try to install the latest version of virtualenv for Windows, I get the message that Python 2.5 is not found. How do I install Python 2.5 (or anything else except 2.6) so that I use the correct version of Python at the correct time. For example, do I need to edit the "path" variable each time that I want to change versions from 2.5 to 2.6? -- http://mail.python.org/mailman/listinfo/python-list