Skip to content

Instantly share code, notes, and snippets.

@chhantyal
Last active November 29, 2017 15:40
Show Gist options
  • Save chhantyal/a0dde0eaa829340d187fb7427a275032 to your computer and use it in GitHub Desktop.
Save chhantyal/a0dde0eaa829340d187fb7427a275032 to your computer and use it in GitHub Desktop.
Install PyODBC on Azure Spark cluster to connect to SQL Server and othere databases. By default it is not installed.
#!/usr/bin/env bash
# To use, submit this script url to Script Actions in Azure Portal
/usr/bin/anaconda/envs/py35/bin/pip install pyodbc
# Just /usr/bin/anaconda/bin/conda for Python 2.
@babjiloganda
Copy link

i have tried this but i am not able to find the installation directory of pyodbc.

@syedhassaanahmed
Copy link

Try this sudo /usr/bin/anaconda/bin/conda install -c anaconda -y pyodbc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment