Thanks for your replies. 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.
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. - John On Thu, May 19, 2011 at 6:54 PM, Alex Mandel <[email protected]>wrote: > I seem to recall if you can get setuptools (easy_install) or pip > installed into the osgeo4w python then you can easily add some more > stuff using the osgeo4w shell. Otherwise as Matt points out, grab the > source for the package you want and in the osgeo4w shell run python > setup.py install on it. As long as it's pure python code that should > work well. > > Enjoy, > Alex > > On 05/19/2011 03:38 PM, Matt Wilkie wrote: > > Hi John, > > > > There isn't yet an integrated method for installing python extras which > > aren't part of the osgeo4w package system. A route that does work with a > > bit extra twiddling is to register the o4w python as the system default > > python[1], after which you can use the standard installers. If that > > doesn't work or isn't acceptable you'll have to manually put it in > > python's site-packages directory (there may be some more steps than > > that. I'm not familiar with pygments). > > > > [1] http://trac.osgeo.org/osgeo4w/ticket/114 - doesn't work on 64bit > > systems, but if you study the .reg files one directory up you can see > > how to make your own reg file to import manually. > > > > matt wilkie > > > > > > On 19/05/2011 11:14 AM, John Callahan wrote: > >> Quick question regarding OSGeo4W. What is the best/preferred way to > >> install python modules within OSGeo4W? For example, I use QGIS 1.7dev > >> and tried to install the QGIS plugin "Fast SQL Layer." It could not > >> install and returned that python module "pygments" must be installed. > >> Doe sOSGeo4W come with a python module installer, or something > >> similar? Thanks. > >> > >> - John > >> > > > _______________________________________________ > osgeo4w-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev >
_______________________________________________ osgeo4w-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
