OS X 10.7+ Python 2.7 (2.7.9 would be best because it includes pip, a package installer)
- Download https://bootstrap.pypa.io/get-pip.py
- Install pip (as admin)
python get-pip.py
So you don't muck up your system python. See http://docs.python-guide.org/en/latest/dev/virtualenvs/.
pip install virtualenv
virtualenv riotest
source riotest/bin/activate
Into the virtualenv you activated above.
pip install https://www.dropbox.com/s/x9iksjv4qb2b6ab/rasterio-0.16-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl?dl=1
Here are a couple quick tests.
rio --version
should print "0.16"
rio transform --src_crs EPSG:4326 --dst_crs EPSG:3857 "[-105, 40]"
should print "[-11688546.533293728, 4865942.279503176]"
deactivate
closes up the virtualenv.
If it works, leave a comment with your OS X version, Python version (and whether system, homebrew, macports), and a thumbs up below. If it doesn't work, can you kindly paste the traceback or error along with OS and Python details?
on OSX 10.8.5 Homebrew python 2.7.9
(riotest)NHV-laptop-7:~ nhv$ pip install https://www.dropbox.com/s/x9iksjv4qb2b6ab/rasterio-0.16-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl?dl=1
rasterio-0.16-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl is not a supported wheel on this platform.
Storing debug log for failure in /Users/nhv/.pip/pip.log
NHV-laptop-7:~ nhv$ cat .pip/pip.log
/Users/nhv/riotest/bin/pip run on Wed Jan 7 15:01:42 2015
rasterio-0.16-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 257, in run
InstallRequirement.from_line(name, None))
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 167, in from_line
raise UnsupportedWheel("%s is not a supported wheel on this platform." % wheel.filename)
UnsupportedWheel: rasterio-0.16-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl is not a supported wheel on this platform.
(riotest)NHV-laptop-7:~ nhv$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.8.5
BuildVersion: 12F45
(riotest)NHV-laptop-7:~ nhv$ python --version
Python 2.7.9
(riotest)NHV-laptop-7:~ nhv$ virtualenv --version
12.0.5
(riotest)NHV-laptop-7:~ nhv$ pip --version
pip 1.5.6 from /usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7)