Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
quale profilo python? [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
falko
Apprentice
Apprentice


Joined: 03 Dec 2004
Posts: 242
Location: Rovereto (TN) Italy

PostPosted: Thu Sep 10, 2020 8:10 am    Post subject: quale profilo python? [RISOLTO] Reply with quote

Buon giorno,
scusate la banalità della mia domanda....

Dando un: eselect python list
ottengo:
Code:

[I] root@falko /h/marco# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)


Mi sembrerebbe che non vi è selezionato nessuna versione di python.
Viene presa di default la più aggiornata?
Devo forzare la selezione della 3.7 o posso lasciare così?
_________________
Io non sarò mai nessuno ma... nessuno sarà mai come me. (Jim Morrison)

A ciacere no se sgonfa done

Gentoo on: Lenovo R500


Last edited by falko on Sat Sep 26, 2020 7:01 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Thu Sep 10, 2020 8:18 am    Post subject: Reply with quote

Viene utilizzata la prima della lista, infatti se selezioni un'altra versione te la ritroverai nella posizione 1
Code:
$ eselect python list     
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python2.7
  [3]   python3.8 (fallback)
$ eselect python set 2
$ eselect python list     
Available Python interpreters, in order of preference:
  [1]   python2.7
  [2]   python3.7
  [3]   python3.8 (fallback)

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
falko
Apprentice
Apprentice


Joined: 03 Dec 2004
Posts: 242
Location: Rovereto (TN) Italy

PostPosted: Thu Sep 10, 2020 8:25 am    Post subject: Reply with quote

Quindi in generale conviene selezionarne una specifica?
_________________
Io non sarò mai nessuno ma... nessuno sarà mai come me. (Jim Morrison)

A ciacere no se sgonfa done

Gentoo on: Lenovo R500
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Thu Sep 10, 2020 9:27 am    Post subject: Reply with quote

falko wrote:
Quindi in generale conviene selezionarne una specifica?

La lista fa riferimento solo al fatto di sapere quale versione lanci quando dai il comando python, infatto per tutti i programmi che installi fatti in python ci pensera dev-lang/python-exec a lancirti la versione corretta per quel programma.
Mi spiego meglio in tutti i programmi (o librerie) python che installi puoi installarli con diversi PYTHON_TRAGETS (python2_7, python3_7,...), se per esempio uno di questi ha il supporto solo a python3 e tu con eselect hai selezionato python2 il programma partira' ugualmente visto che python-exec lanciera' il programma con python3.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
falko
Apprentice
Apprentice


Joined: 03 Dec 2004
Posts: 242
Location: Rovereto (TN) Italy

PostPosted: Sat Sep 26, 2020 7:01 am    Post subject: Reply with quote

Ok era perchè avevo forzato l'utilizzo di una versione di python come target per riuscire ad aggiornare un pacchetto.
Poi avevo lasciato l'impostazione globale.

/etc/portage/package.use
Code:
   
    */* PYTHON_TARGETS: python3_6 python3_7
    */* PYTHON_SINGLE_TARGET: -* python3_6


Adesso l'ho rimosso ho rimossa e aggiornato il sistema senza problemi.
Grazie @fedeliallalinea per le risposte
_________________
Io non sarò mai nessuno ma... nessuno sarà mai come me. (Jim Morrison)

A ciacere no se sgonfa done

Gentoo on: Lenovo R500
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum