Srijan R. Shetty bio photo

Srijan R. Shetty

Email Twitter LinkedIn Github RSS

The travails of the noble warriors who’ve tried to walk the path of the dependency hell of python have been immortalized in the travelogues of the internet. From mosaics ornamenting the holy shrines of xkcd, to gospels written in the blogosphere; we’ve been plagued with tales of valor. And yet, python like the heads of the hydra grows two more if you’ve managed to chop one off.

Our hero, chose the path of pyenv - a recondite cult who claim to have conquered the versions of python. While all was the well in the land of pyenv’s python-2.7.9, until one day when he had to tackle a new villan in town - data visualizations. His best bet was to use jupyter - no, ipython wasn’t enough - and so he embarked on a perilous path. In his first attempt he used the incantation of:

$ pip install jupyter

Things worked well and a kernel appeared to fulfil his commands until asked to plot, when kernel came crashing down.

ModuleNotFoundError: No module named '_tkinter' #_ This comment preserves formatting in vim

The helpful folks from the land of stackoverflow suggested a spell to resuscitate the kernel.

$ pip uninstall jupyter numpy pandas matplotlib
$ sudo apt-get install tk-dev
$ pip install jupyter numpy pandas matplotlib

And viola, and darkness took over and python-2.7.9. Scared and lonely in the world of the internet, our hero did the only logical thing.

$ pyenv uninstall 2.7.9

He took over the responsibility of the python world and annihilated it. Sometimes you have to let go of the past. Kill it if you have to. So he did, only to create a new one like the Oracle in Matrix. But this time he was determined, he went through the valleys of medium, the hills of StackOverflow and the plains of GitHub to learn of the one true spell.

$ pyenv install 2.7.9
$ pip install --upgrade pip
$ pip uninstall enum enum34
$ pip install enum34 --upgrade
$ pip install cryptography
$ pip install numpy
$ pip install pandas
$ pip install matplotlib
$ pip install jupyter

And in the moment he saw the reflection of the one true UNIX kernel. He had done it, he had vanquished data visualizations and walked the fiery dependency hell of python.