Created
December 10, 2020 13:22
-
-
Save Utshaw/54d1b4c08c3cdde52ad884621c71c5cd to your computer and use it in GitHub Desktop.
pip python version mismatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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