Skip to content

Instantly share code, notes, and snippets.

@datapolitan
Last active March 7, 2023 03:21
Show Gist options
  • Save datapolitan/43b6bd86b408dccc47fc to your computer and use it in GitHub Desktop.
Save datapolitan/43b6bd86b408dccc47fc to your computer and use it in GitHub Desktop.
Installation of packages to get matplotlib and pandas installed on Amazon EC2 instance
#!/bin/bash
sudo yum install update
sudo yum groupinstall "Development Tools"
sudo yum install python-devel libpng-devel freetype-devel
#the last two are necessary for pip to run without failing with error 'Command "python setup.py egg_info" failed with error code 1'
sudo pip install matplotlib pandas #Finally it works!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment