Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
on a system w/o python3
#21
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.
>>>
Reply
#22
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#23
(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.
Reply
#24
looks interesting.  looks like it does. looks good.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020