Wednesday, December 14, 2016

Re: Installing django on python3.5.2. Debian

As far as I remember, in Debian-based distributions you have to install pip via another package, usually python-pip or python3-pip. Also, there's a way to install pip via easy_install.

And yes, you probably shouldn't use system pip, virtualenv does install pip inside newly created virtual environments.

> On 14 Dec 2016, at 10:51, Michal Petrucha <michal.petrucha@koniiiik.org> wrote:
>
> On Tue, Dec 13, 2016 at 01:16:52PM -0800, mihail.poplavkov@gmail.com wrote:
>> Hello! I have a problem with installing Django on python 3.5.2, Debian
>> I can't install pip on this version of python. However, python 3.4 has pip.
>> How can I install pip in python 3.5.2?
>
> If you installed Python from apt repositories, then you should almost
> never use pip directly, in fact, there's very little reason for you to
> have a system-level pip at all.
>
> What you should do is create a virtualenv (either with the
> python3-virtualenv package with the command "virtualenv", or
> python3-venv, using "python3 -m venv"). The virtualenv will already
> contain a version of pip that you can use, and you're free to mess
> with packages inside that virtualenv in whatever way you want.
>
> The reason for this is that if you use pip with your system Python
> installed from repositories, there's a high chance that you will
> overwrite some of the essential repository-installed packages with
> pip, which can render your entire Python installation unusable. This
> does happen to people quite often, and it's quite difficult to recover
> from.
>
> Good luck,
>
> Michal
>
> --
> 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-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/20161214075129.GI22986%40koniiiik.org.
> 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+unsubscribe@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/FE900602-9D27-4C1F-B63C-9390D30BEAB1%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment