“sudo pip install Django” => sudo: pip: command not found

孤人 提交于 2019-12-10 15:15:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!