Hi,
If virtualenv is to be avoided (which I do not recommend anyway, especially for a newbie, since it protects him from breaking his Python system installation), my advice would be to go with: $ python setup.py install --user This way only the user's private environment is modified, and if anything goes wrong the normal behavior of the system can be restored by deleting the relevant tree under $HOME/.local (or its equivalent for non Linux contexts). IMHO, suggesting a sudo based approach to a newbie (and even to a confirmed) user is an open door to system mess. Anyway, virtualenv worth the investment learning how to use it. I have been used to deploy packages in Python system libs on production systems, and ran into problem at a time. Since then, and even when there is only one Python app running on the box, I have always deployed under virtualenvs and fell much better now. Note : To be honest, this is not fully true currently, because I've switched to Docker based deployment for new projects, which eliminates all this libs conflicts hassles and ensure me that things run the same on my local staging env and on the production server. This is of course not the only benefit, but it solves this specific problem. For true production application class projects, I would recommend investing a bit in this direction. Just my $0.02 Best regards Eric ________________________________ From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf of Etienne Robillard <tkad...@yandex.com> Sent: Friday, February 9, 2018 9:37:02 PM To: James Farris Cc: django-users@googlegroups.com Subject: Re: How to install and use Django i found that the best way to confuse a newbie python/django programmer is to invite him/her to use virtualenv. Virtualenv is absolutely NOT required for properly running django in development or production mode. a most flexible approach is to install django in development mode: $ cd /path/to/django $ sudo python setup.py develop --prefix=/usr/local HTH, Etienne Le 2018-02-09 à 13:12, James Farris a écrit : > I highly recommend installing virtualenv and virtualenvwrapper. This will > reduce the stress of creating a bunch of unnecessary modules on your computer > and contain each project you create in a separate environment. For example > you wouldn’t necessarily want to install Django globally but rather for a > specific project your working on. That’s where virtualenv comes in. > > I also recommend going through the Django Book. It walks you through an app > that uses a lot of what Django has to offer: https://djangobook.com > > Also go through the Writing your first Django app in the Django docs: > https://docs.djangoproject.com/en/2.0/intro/tutorial01/ > > I use PyCharm, because it has great auto complete and debugging. > > Other references mentioned above are below. > > Django apps: https://docs.djangoproject.com/en/2.0/ref/applications/ > Homebrew: https://brew.sh/ > Virtualenv: https://virtualenv.pypa.io/en/stable/ > Virtualenvwrapper: > https://virtualenvwrapper.readthedocs.io/en/latest/install.html > -- Etienne Robillard tkad...@yandex.com https://www.isotopesoftware.ca/ -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@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/394be6a7-15a1-4328-90cf-b1385ac34bef%40yandex.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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@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/AM5P193MB0083C6948FA5DED20EB38EB08CF10%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM. For more options, visit https://groups.google.com/d/optout.