[osgeo4w-dev] python modules
Matt Wilkie
matt.wilkie at gov.yk.ca
Tue May 24 12:12:36 EDT 2011
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.
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).
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
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------
On 20/05/2011 5:48 AM, John Callahan wrote:
> 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
> <tech_dev at wildintellect.com <mailto:tech_dev at wildintellect.com>> 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
> osgeo4w-dev at lists.osgeo.org <mailto:osgeo4w-dev at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20110524/e7f67660/attachment.html
More information about the osgeo4w-dev
mailing list