2👍
✅
You need to install pip
for python2.7. If it’s installed, you should be able to see it using which pip-2.7
.
It’s better not to touch system python. Use homebrew to install your own.
👤Xuan
1👍
The problem is that you are running pip from your default Python installation (2.6), read this: How to run multiple python version on Windows, maybe answers give you how to solve in your OS X.
You can view the version of your default Python installation by executing python -V
, there is a way to specify which version to use when you execute python
, in Linux you can create an alias (alias python=python2.7
) in your $HOME/.bash_profile
, OS X must have something similar, then install pip using your preferred version.
BTW, It’s recommended to use virtualenv
- [Django]-Django One to One – Don't want delete related model
- [Django]-How to validate django form only when adding not editing
Source:stackexchange.com