Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread johnpaul mulongo


On Wednesday, May 22, 2019 at 3:48:16 PM UTC+3, omar ahmed 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 could also try to check out pyenv . 
It's a pretty handy when dealing with python versions.

-- 
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/7d9828d2-eaae-4f78-a551-b612edd89080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread James Schneider
No
On Wed, May 22, 2019, 10:22 AM johnpaul mulongo 
wrote:

>
>
> On Wednesday, May 22, 2019 at 3:48:16 PM UTC+3, omar ahmed 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 could also try to check out pyenv .
> It's a pretty handy when dealing with python versions.
>
> --
> 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/7d9828d2-eaae-4f78-a551-b612edd89080%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/CA%2Be%2BciU0N0zO2EHeB5z-tmB5fxKt%3DxWsvTGd%3DoEoRSqz%3DdMNQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread omar ahmed
thank you nick it works 

-- 
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/12251afa-2b7d-4c4a-8b8b-2521de8076a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread Chetan Ganji
Hi Omar,

I have added these settings to me ~/.bashrc file in Kubuntu 18.04.
Same would work for rest of the linux with minor changes.
First group would be your answer.
Second groups of lines are used for virtualenv settings
Third group of lines are to make my life easier by saving me typing the
same commands over and over. These are the 3 commands that I use most of
the time.


# *** RyuCoder Settings Start


alias python=python3.7
alias python3=python3.7
alias pip='python3.7 -m pip'
alias sudopip='sudo python3.7 -m pip'

export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3.7
export WORKON_HOME=~/ENV
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source /usr/local/bin/virtualenvwrapper.sh

alias run='python manage.py runserver'
alias migrations='python manage.py makemigrations'
alias migrate='python manage.py migrate'

# *** RyuCoder Settings End




Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Wed, May 22, 2019 at 6:57 PM Aldian Fazrihady  wrote:

> Omar, if you upgraded your system to Ubuntu 18.04,  it will install Python
> 3.6 for you.
>
>
> Aldian Fazrihady
> https://www.aldianfazrihady.com/en-us/
>
> On Wed, May 22, 2019 at 9:22 PM omar ahmed  wrote:
>
>> ok .. i did it but it make my env with python3.5
>>
>>
>> On Wednesday, May 22, 2019 at 3:09:37 PM UTC+2, Nick Sarbicki wrote:
>>>
>>> Hi Omar,
>>>
>>> It is generally recommended to _not_ set python3 as your system default.
>>> This is stated in PEP 394
>>> .
>>> 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
>>> .
>>>
>>> - Nick
>>>
>>>
>>> On Wed, May 22, 2019 at 1:48 PM omar ahmed  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...@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/2dafe695-66c0-42a3-b92e-a71881401ab7%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/89c67f74-2ee9-4fdc-b300-9bd701a45a46%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/CAN7EoAZYeqcxCo4obXOw5W538Xbz6HFA-_jK_zBc3c15P5CRUA%40mail.gmail.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 

Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread Aldian Fazrihady
Omar, if you upgraded your system to Ubuntu 18.04,  it will install Python
3.6 for you.


Aldian Fazrihady
https://www.aldianfazrihady.com/en-us/

On Wed, May 22, 2019 at 9:22 PM omar ahmed  wrote:

> ok .. i did it but it make my env with python3.5
>
>
> On Wednesday, May 22, 2019 at 3:09:37 PM UTC+2, Nick Sarbicki wrote:
>>
>> Hi Omar,
>>
>> It is generally recommended to _not_ set python3 as your system default.
>> This is stated in PEP 394
>> .
>> 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
>> .
>>
>> - Nick
>>
>>
>> On Wed, May 22, 2019 at 1:48 PM omar ahmed  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...@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/2dafe695-66c0-42a3-b92e-a71881401ab7%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/89c67f74-2ee9-4fdc-b300-9bd701a45a46%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/CAN7EoAZYeqcxCo4obXOw5W538Xbz6HFA-_jK_zBc3c15P5CRUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread omar ahmed
ok .. i did it but it make my env with python3.5 


On Wednesday, May 22, 2019 at 3:09:37 PM UTC+2, Nick Sarbicki wrote:
>
> Hi Omar,
>
> It is generally recommended to _not_ set python3 as your system default. 
> This is stated in PEP 394 
> .
>  
> 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 
> .
>
> - Nick
>
>
> On Wed, May 22, 2019 at 1:48 PM omar ahmed  > 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...@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/2dafe695-66c0-42a3-b92e-a71881401ab7%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/89c67f74-2ee9-4fdc-b300-9bd701a45a46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread Nick Sarbicki
Hi Omar,

It is generally recommended to _not_ set python3 as your system default.
This is stated in PEP 394
.
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
.

- Nick


On Wed, May 22, 2019 at 1:48 PM omar ahmed  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
> 
> .
> 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.