Skip to content

Instantly share code, notes, and snippets.

@Utshaw
Created December 10, 2020 13:22
Show Gist options
  • Save Utshaw/54d1b4c08c3cdde52ad884621c71c5cd to your computer and use it in GitHub Desktop.
Save Utshaw/54d1b4c08c3cdde52ad884621c71c5cd to your computer and use it in GitHub Desktop.
pip python version mismatch
# Scenario:
# pip refers to python3
# python refers to python2
# pip install doesn't work for python instead works for python3
# Problem: Can't install modules for python2
#______________________________________________________________
# Solution:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
# Now pip install this way below (dnspython is the interesting module):
python -m pip install dnspython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment