Ask Your Question
0

Why does my fedora shows python2.7 whereas i have python 3.6 installed in windows and how do i switch it to 3.6 in fedora?

asked 2017-07-06 13:19:52 -0600

blastoise gravatar image

After dual booting my fedora 25 shows python 2.7 to be installed. How do i switch it python 3.6

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
2

answered 2017-07-06 23:16:13 -0600

aeperezt gravatar image

Fedora 26 will ship with Python 3.6 as a link python3.

edit flag offensive delete link more
2

answered 2017-07-06 15:48:18 -0600

fcomida gravatar image

updated 2017-07-06 15:49:03 -0600

Fedora is actually transitioning all its python based tools to python 3, this effort hasn't yet been completed so python 2 is still installed by default alongside python 3 that is available through the symlink /usr/bin/python3, which currently points to /usr/bin/python3.5 in my system (F24).

edit flag offensive delete link more

Comments

florian gravatar imageflorian ( 2017-07-06 20:52:02 -0600 )edit
1

For example dnf runs with python3. So python version 3 is an essential package for fedora.

villykruse gravatar imagevillykruse ( 2017-07-07 01:48:46 -0600 )edit
1

answered 2017-08-14 07:59:35 -0600

nasos117 gravatar image

I suggest you don't mess with your system's default Python installation. If you type python -V you should get Python 2.7.13 and python3 -V -> Python 3.6.2 . If you change your default python path some applications such as PulseAudio equalizer won't start. Always use virtual environments if you wish to experiment with Python.

I don't know if this method is correct but it worked for me:

You can temporarily change your version with the command export PATH=<your_python_path>:$PATH. For example, if you have anaconda 3 installed in your home directory you should type: export PATH=~/anaconda3/bin:$PATH. Now you'll be able to do your python 3-anaconda stuff from this terminal like starting Spyder (Spyder &) with Python 3 instead of 2. This won't mess up your default Python settings, as it temporarily (only for this particular terminal session) changes the environmental variable PATH.

edit flag offensive delete link more
0

answered 2017-07-06 15:41:32 -0600

HaDi gravatar image

i got last version installed 3.5 on my fedora .. using terminal ! :
python3.5
i hope this is what you looking for it

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-07-06 13:19:52 -0600

Seen: 528 times

Last updated: Aug 14 '17