Rasterio: Rasterio.io import error

Created on 11 Jun 2018  路  1Comment  路  Source: mapbox/rasterio

I have an issue similar to #1295 however, the solution provided there did work for me.

import rasterio
from rasterio.io import MemoryFile
I get this error:
from rasterio.io import MemoryFile
ImportError: No module named io

I am working on a conda environment.

The pip install --pre rasterio did not change the result.
Any info is greatly appreciated.

Operating system

MacOS Sierra version 10.12.6
python 2.7

Rasterio version and provenance

pip show rasterio
Name: rasterio
Version: 0.36.0

Most helpful comment

@Jsdk2018 you cannot use pip to install rasterio in a conda environment. You must use conda install -c conda-forge/label/dev rasterio.

>All comments

@Jsdk2018 you cannot use pip to install rasterio in a conda environment. You must use conda install -c conda-forge/label/dev rasterio.

Was this page helpful?
0 / 5 - 0 ratings