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 href="mailto:tech_dev@wildintellect.com">tech_dev@wildintellect.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 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></div><div class="h5">_______________________________________________<br>
osgeo4w-dev mailing list<br>
<a href="mailto:osgeo4w-dev@lists.osgeo.org">osgeo4w-dev@lists.osgeo.org</a><br>
<a 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>