问题
This what my terminal is saying when trying to install Django.
MacBook-XXXX:~ Stephane$ sudo pip install Django
sudo: pip: command not found
I have tested in idle shell if pip is installed:
>>> import easy_install
>>> import pip
>>>
What am I doing wrong?
回答1:
you need to install pip
sudo easy_install pip
回答2:
pip is a package management system used for installing packages written in python. So first install pip and then Django.
sudo apt-get install python-pip.
And for installing django, follow
django installation steps.
来源:https://stackoverflow.com/questions/29514136/sudo-pip-install-django-sudo-pip-command-not-found