<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
One can have simultaneous python entries in the system registry as
long as the first two numbers are different: 2.5, 2.7...3.1 is
valid, while simultaneous 2.5.2 and 2.5.4 is not.<br>
<br>
Only one of these will be the system default, as in be associated
with .py files. However one in the registry installers will look
for and install to the version they are specific to (and some
installers will even ask which version you want to install to).<br>
<br>
<pre class="moz-signature" cols="72">matt wilkie
--------------------------------------------
Geomatics Analyst
Information Management and Technology
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
<a class="moz-txt-link-freetext" href="http://environmentyukon.gov.yk.ca/geomatics/">http://environmentyukon.gov.yk.ca/geomatics/</a>
-------------------------------------------- </pre>
<br>
On 20/05/2011 5:48 AM, John Callahan wrote:
<blockquote
cite="mid:BANLkTinFQfvwMbeBm6amRbW98D_oHG1K8Q@mail.gmail.com"
type="cite">Thanks for your replies.<br>
<br>
I did look at setuptools (easy_install) but it will not install
unless python is in your windows registry as the system default
python. I will probably add the OSGeo4W python as my system
default once it moves to 2.7. I may have to do it now anyway. I
haven't tried pip yet.<br>
<br>
FYI... For the module pygments (required by a QGIS plugin),
running "python setup.py install" did not work. The error "can't
open file setup.py" is returned, which makes some sense since that
file does not exist.<br>
<br>
- John<br>
<br>
<br>
<br>
<br>
<div class="gmail_quote">On Thu, May 19, 2011 at 6:54 PM, Alex
Mandel <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:tech_dev@wildintellect.com">tech_dev@wildintellect.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
I seem to recall if you can get setuptools (easy_install) or
pip<br>
installed into the osgeo4w python then you can easily add some
more<br>
stuff using the osgeo4w shell. Otherwise as Matt points out,
grab the<br>
source for the package you want and in the osgeo4w shell run
python<br>
setup.py install on it. As long as it's pure python code that
should<br>
work well.<br>
<br>
Enjoy,<br>
<font color="#888888">Alex<br>
</font>
<div class="im"><br>
On 05/19/2011 03:38 PM, Matt Wilkie wrote:<br>
> Hi John,<br>
><br>
> There isn't yet an integrated method for installing
python extras which<br>
> aren't part of the osgeo4w package system. A route that
does work with a<br>
> bit extra twiddling is to register the o4w python as
the system default<br>
> python[1], after which you can use the standard
installers. If that<br>
> doesn't work or isn't acceptable you'll have to
manually put it in<br>
> python's site-packages directory (there may be some
more steps than<br>
> that. I'm not familiar with pygments).<br>
><br>
> [1] <a moz-do-not-send="true"
href="http://trac.osgeo.org/osgeo4w/ticket/114"
target="_blank">http://trac.osgeo.org/osgeo4w/ticket/114</a>
- doesn't work on 64bit<br>
> systems, but if you study the .reg files one directory
up you can see<br>
> how to make your own reg file to import manually.<br>
><br>
> matt wilkie<br>
><br>
><br>
</div>
<div class="im">> On 19/05/2011 11:14 AM, John Callahan
wrote:<br>
>> Quick question regarding OSGeo4W. What is the
best/preferred way to<br>
>> install python modules within OSGeo4W? For
example, I use QGIS 1.7dev<br>
>> and tried to install the QGIS plugin "Fast SQL
Layer." It could not<br>
>> install and returned that python module "pygments"
must be installed.<br>
>> Doe sOSGeo4W come with a python module installer,
or something<br>
>> similar? Thanks.<br>
>><br>
>> - John<br>
>><br>
<br>
<br>
</div>
<div>
<div class="h5">_______________________________________________<br>
osgeo4w-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:osgeo4w-dev@lists.osgeo.org">osgeo4w-dev@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev"
target="_blank">http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>