Search code examples
pythonpython-3.xazurecassandraazure-machine-learning-service

ImportError: No module named cassandra in Azure Machine Learning Studio


I am trying to install python package cassandra driver in Azure Machine Learning studio. I am following this answer from here. Unfortunately i don't see any wheel file for cassandra-driver https://pypi.python.org/pypi/cassandra-driver/ so i downloaded the .tar file and converted to zip.

I included this .zip file as dataset and connected to python script

jpg1

But when i run it, it says No module named cassandra jpg2

Does this work only with wheel file? Any solution is much appreciated.

I am using Python Version : Anoconda 4.0/Python 3.5


Solution

  • I got it working. Changed the folder inside .zip file to "cassandra" (just like cassandra package).

    And in the Python script, i added

    from cassandra import *