Installing django on python3.5.2. Debian

2016-12-13 Thread mihail . poplavkov
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? 

-- 
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/11beec53-44d9-464b-953f-dbc8f484beb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Installing django on python3.5.2. Debian

2016-12-13 Thread Antonis Christofides

Hi,

How did you install Python? Usually pip is installed together with Python. If 
for some reason it hasn't been installed, you should be able to install it with 
"python -m ensurepip". See https://docs.python.org/3/library/ensurepip.html.


Regards,

Antonis Christofides
http://djangodeployment.com

On 12/13/2016 11:16 PM, mihail.poplav...@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?
--
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/11beec53-44d9-464b-953f-dbc8f484beb6%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+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/d5ac2063-c4fd-a2c9-c186-d91a54fcb9d2%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


Re: Installing django on python3.5.2. Debian

2016-12-13 Thread Michal Petrucha
On Tue, Dec 13, 2016 at 01:16:52PM -0800, mihail.poplav...@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+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/20161214075129.GI22986%40konk.org.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


Re: Installing django on python3.5.2. Debian

2016-12-14 Thread GMail
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  
> wrote:
> 
> On Tue, Dec 13, 2016 at 01:16:52PM -0800, mihail.poplav...@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+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/20161214075129.GI22986%40konk.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+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/FE900602-9D27-4C1F-B63C-9390D30BEAB1%40gmail.com.
For more options, visit https://groups.google.com/d/optout.