Closed GoogleCodeExporter closed 8 years ago
Nevermind, I got it working.
Thanks.
Original comment by mpjoh...@jpl.nasa.gov
on 18 Jul 2012 at 7:45
This is not a netcdf4-python issue. You can't import C extensions built with
python2.4 with python2.6.
If you run python setup.py install --user with python2.6, it will create a
separate (python-versioned) install directory in your home directory. I
believe you don't need to set PYTHONPATH, since that directory is automatically
searched.
This won't work for python2.4 however, so you'll have to specify the directory
to install in (or use --home) and then set the PYTHONPATH to look in this
directory when you're using python2.4. Be careful to unset the PYTHONPATH when
you use python2.6 however.
Or, just use virtualenv (http://pypi.python.org/pypi/virtualenv/) which is
designed specifically to deal with this sort of thing.
Original comment by whitaker.jeffrey@gmail.com
on 18 Jul 2012 at 7:48
Original comment by whitaker.jeffrey@gmail.com
on 26 Feb 2014 at 2:04
Original comment by whitaker.jeffrey@gmail.com
on 26 Feb 2014 at 2:04
Original issue reported on code.google.com by
mpjoh...@jpl.nasa.gov
on 18 Jul 2012 at 7:44