Hi Omar,

It is generally recommended to _not_ set python3 as your system default.
This is stated in PEP 394
<https://www.python.org/dev/peps/pep-0394/#future-changes-to-this-recommendation>.
The reasoning being there may be internal and third party processes which
still expect the default python to be 2.x. Updating the default to python3
will likely break these and could cause unexpected problems.

You can however create a virtualenv with python3 by simply running *virtualenv
env -p python3*.

It is also worth noting that as far as I know Heroku does support python3.
There is some documentation on this here
<https://devcenter.heroku.com/articles/python-runtimes>.

- Nick


On Wed, May 22, 2019 at 1:48 PM omar ahmed <omarkad...@gmail.com> wrote:

> hello ..
> just finished my first project with django but i can not publish it
> because my default python is python 2.7.12 and Heroku now does not support
> it ..
> now i installed python 3.6.8 .... how can i set it as default python
> version to make my projects with virtualenv ?
> thanks in advance
>
> --
> 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/2dafe695-66c0-42a3-b92e-a71881401ab7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2dafe695-66c0-42a3-b92e-a71881401ab7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAGuvt92hrnjiMbsywLx%3D0zxN-4qsE7Z7CVybM0F7bDLK5sMOSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to