Python Forum

Full Version: on a system w/o python3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Skaperen Wrote:i am thinking of changing my (Ubuntu) system to python->python3 and see what happens. i can change it back if i need to
Will mention again that pyenv do this with ease,and in safe way.
mint@mint ~ $ pyenv install 3.6.2
Downloading Python-3.6.2.tar.xz...
-> https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
Installing Python-3.6.2...
Installed Python-3.6.2 to /home/mint/.pyenv/versions/3.6.2
 
# Make python and pip default to 3.6.2 or what version want to use
mint@mint ~ $ pyenv global 3.6.2

mint@mint ~ $ python
Python 3.6.2 (default, Jul 20 2017, 14:21:59) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
Going back,it do not mess with OS default setup.
mint@mint ~ $ pyenv local system
mint@mint ~ $ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
mint@mint ~ $ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
ok, so there could be things (to the degree Ubuntu has not upgraded things) that leave my system messed up and maybe even messed up bad or even messed up so bad the only practical fix is to hard format and reinstall. ok, i will skip that idea or do it in a virtual machine (on an image i can delete).

but .... will pyenv work on Amazon Linux?  FYI, it's closest cousin is Centos Linux.
(Nov-11-2017, 05:24 AM)Skaperen Wrote: [ -> ]but .... will pyenv work on Amazon Linux?  FYI, it's closest cousin is Centos Linux.
Seems so link_1link_2.
looks interesting.  looks like it does. looks good.
Pages: 1 2 3