Owners-MacBook-Pro:realityBB owner$ pip install Django
Collecting Django
Downloading https://files.pythonhosted.org/packages/f8/1c/31112c778b7a56ce18e3fff5e8915719fbe1cd3476c1eef557dddacfac8b/Django-1.11.15-py2.py3-none-any.whl (6.9MB)
100% |████████████████████████████████| 7.0MB 2.2MB/s
Requirement already satisfied: pytz in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from Django) (2013.7)
Installing collected packages: Django
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/Django-1.11.15.dist-info'
Consider using the `--user` option or check the permissions.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2d82fa91-1cd0-4a16-9ebd-568e7aeb8b2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cb879507-5ffb-4adf-add8-5479978b37ed%40googlegroups.com.
Hi Phil,
As suggested by other posters, creating a virtualenv is the safest way to work with Python, since it avoids tampering with the system level installation (f.i. several Linux distros use Python for a lot of their system tools in nowadays versions) and it lets you have customized environments per project (or projects group) not interfering with other ones.
A solution exists one step higher, which allows you to have several different versions of Python (not only 2 and 3, but 2.x, 2.y, 3.z,...) alongside and select which one a given project uses. It's name is pyenv, and it can be found here : https://github.com/pyenv/pyenv
In addition to managing different versions of Python on the same system, you can also create virtualenvs attached to them, as you would do with a standard Python installation.
And of course, everything runs in user space, so no need for sudo or admin rights. Plus some goodies such as automatically selecting the right pyenv (i.e. Python version plus virtualenv) when you cd to a directory, if a ".python-version" file containing its name exists in it or in one of its ancestors. Have a look to the Web page referenced above for more detail.