'Trying to install Python2.7 in Scientific Linux 6

I'm doing research and using a virtual machine that has Scientific Linux 6 and I need to install a program that only works with Python2.7, so I'm relegated to pretty outdated software.

I manage to install Python2.7 from source (installing anaconda didn't work) and pip but pip doesn't work. Every time I try to install a package it gives me this error:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting ssl
  Could not fetch URL https://pypi.python.org/simple/ssl/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find a version that satisfies the requirement ssl (from versions: )
No matching distribution found for ssl

I would appreciate all the help I could get.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source