Question

I'm using Cloud9 (https://c9.io) and 'm trying to import MapReduce and I'm receiving "ImportError: No module named MapReduce". Someone can help-me to install this library in Cloud9 python environment?

#--------------------------------------------------------------------
import MapReduce
import sys

mr = MapReduce.MapReduce()
.
.
.
Was it helpful?

Solution

download MapReduce.py file from

https://github.com/uwescience/datasci_course_materials/blob/master/assignment3/MapReduce.py

and import in main python module

import imp
MapReduce = imp.load_source('MapReduce', 'C:/../YourDirectory/MapReduce.py')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top