Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How to upgrade Python 2.6 to 2.7

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
58 posts
  • Previous
  • 1
  • 2
  • 3
Author
Message
dafi
n00b
n00b
User avatar
Posts: 21
Joined: Thu Jul 19, 2007 10:05 pm
Location: Poznań, Poland

  • Quote

Post by dafi » Wed Sep 28, 2011 4:55 pm

I can't select python version

Code: Select all

eselect python set python2.7
!!! Error: Couldn't source /usr/share/eselect/modules/python.eselect
Call stack:
    * do_action (core.bash:83)
    * main (eselect:191)
exiting
any ideas ?
Long distance GentOO User
Top
West201
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 117
Joined: Thu Dec 22, 2011 1:58 am

  • Quote

Post by West201 » Sat Dec 24, 2011 11:41 pm

Thanks for guide :)

I was just starting to look for this. Although is there a way to tell which version of Python I already have ? I installed Gentoo 4 days ago.
Top
m4chine
Apprentice
Apprentice
User avatar
Posts: 271
Joined: Wed Mar 12, 2003 6:06 pm
Location: Ventura, CA, USA

  • Quote

Post by m4chine » Thu Jan 05, 2012 4:16 pm

JESSEJJ89 wrote:Thanks for guide :)

I was just starting to look for this. Although is there a way to tell which version of Python I already have ? I installed Gentoo 4 days ago.
Yes -

Code: Select all

eselect python list
never trust a man who can count to 1023 on his fingers.

-m4chine
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Thu Sep 13, 2012 12:56 pm

thanks for this thread to Helena & the answers to everyone who contributed :)

*goes off to system-maintenance"
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
PsykoNerd
n00b
n00b
User avatar
Posts: 16
Joined: Tue Dec 20, 2011 4:04 pm
Location: There !
Contact:
Contact PsykoNerd
Website

update specific package

  • Quote

Post by PsykoNerd » Wed Aug 14, 2013 8:52 am

How do I update an specific package with emerge, I know I can, but how ?
Top
dianemcmillan
n00b
n00b
Posts: 1
Joined: Thu Oct 31, 2013 1:27 am

Reply:

  • Quote

Post by dianemcmillan » Wed Nov 06, 2013 3:48 am

@mikegpitt
Thanks for providing the indication of these steps. Now I know the explanation on those steps.
Top
idoerg
n00b
n00b
Posts: 41
Joined: Sun Jan 22, 2012 1:25 am

Re: How to upgrade Python 2.6 to 2.7

  • Quote

Post by idoerg » Tue Jan 14, 2014 6:04 pm

Helena wrote: EDIT revised to quickly display the solution without having to search the entire topic

In the stable tree python 2.7 has been available for some time. However the upgrade from 2.6 needs to be performed in a certain manner.

Immediately after emerging python 2.7 a message is displayed by portage about running python-updater. This message does not list all steps required which are:

Code: Select all

eselect python set python2.7 
python-updater 
emerge --depclean 
revdep-rebuild
NOTE of course the last two lines may affect other packages as well!
So I tried that, but when I try python-update, packages seem to still have 2.6 dependencies, and won't build due to slot conflicts. For example:

Code: Select all

(dev-python/sphinx-1.2::gentoo, ebuild scheduled for merge) pulled in by
    dev-python/sphinx[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)] required by (dev-python/pexpect-3.0::gentoo, ebuild scheduled for merge)
    dev-python/sphinx[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)] required by (dev-python/matplotlib-1.3.1::gentoo, ebuild scheduled for merge)

I tried installing 2.6 before running python-updater, but that didn't help.
Top
KAMIKAZE_
Guru
Guru
Posts: 309
Joined: Thu Oct 09, 2003 3:56 pm
Location: Riga, Latvia
Contact:
Contact KAMIKAZE_
Website

  • Quote

Post by KAMIKAZE_ » Thu Jan 04, 2018 2:52 am

Do we really need this sticked in 2018 ?
-=[powered by Gentoo]=-
Top
Post Reply

58 posts
  • Previous
  • 1
  • 2
  • 3

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic