IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Administration système Discussion :

installer un package


Sujet :

Administration système

  1. #21
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    oups j'ai oublié le fichier yom.log voilà son contenu

    [root@localhost ~]# cat /var/log/yum.log
    Aug 11 17:24:03 Installed: ddd - 3.3.11-17.fc7.i386
    mai 10 10:27:13 Installed: adobe-release-i386 - 1.0-1.noarch
    Apr 25 17:01:05 Installed: compat-libstdc++-296 - 2.96-138.i386
    Oct 07 23:13:25 Installed: perl-Tk - 804.028-3.fc7.i386
    oct 07 23:26:24 Erased: ant-apache-resolver
    oct 07 23:26:29 Erased: ant-antlr
    oct 07 23:26:31 Erased: java-1.5.0-gcj-devel
    oct 07 23:26:32 Erased: ant-commons-logging
    oct 07 23:26:33 Erased: gcc-java
    oct 07 23:26:34 Erased: ant-junit
    oct 07 23:26:36 Erased: eclipse-ecj
    oct 07 23:26:37 Erased: ant-javamail
    oct 07 23:26:39 Erased: eclipse-platform
    oct 07 23:26:49 Erased: eclipse-platform-sdk
    oct 07 23:26:52 Erased: ant-jsch
    oct 07 23:26:53 Erased: eclipse-jdt
    oct 07 23:26:55 Erased: ant-apache-bcel
    oct 07 23:26:55 Erased: ant-apache-log4j
    oct 07 23:26:56 Erased: ant-trax
    oct 07 23:26:57 Erased: ant-nodeps
    oct 07 23:26:58 Erased: ant-swing
    oct 07 23:26:58 Erased: ant
    oct 07 23:27:00 Erased: tomcat5
    oct 07 23:27:01 Erased: ant-jdepend
    oct 07 23:27:02 Erased: ant-apache-regexp
    oct 07 23:27:03 Erased: ant-apache-oro
    oct 07 23:27:03 Erased: eclipse-jdt-sdk
    Nov 06 14:13:20 Installed: tcl - 1:8.4.13-19.fc7.i386
    Nov 06 14:13:20 Installed: perl-File-Copy-Recursive - 0.36-1.fc7.noarch
    Nov 06 14:13:24 Installed: tk - 1:8.4.13-7.fc7.i386
    Nov 06 14:14:30 Installed: R - 2.7.0-5.fc7.i386
    Nov 16 16:07:55 Installed: blas - 3.1.1-1.fc7.i386
    Nov 16 16:07:58 Installed: atlas - 3.6.0-11.fc7.1.i386
    Nov 16 16:08:10 Installed: numpy - 1.0.3-0.1.fc7.i386
    Nov 16 16:08:12 Installed: ufsparse - 2.1.1-1.fc6.i386
    Nov 16 16:08:14 Installed: fftw - 3.1.2-3.fc6.i386
    Nov 16 16:08:28 Installed: scipy - 0.6.0-3.fc7.i386
    Nov 20 16:11:33 Updated: eclipse-rcp - 1:3.2.2-15.fc7.i386
    Nov 20 16:11:37 Updated: eclipse-rcp-sdk - 1:3.2.2-15.fc7.i386
    Jan 19 13:16:23 Installed: openmpi-libs - 1.1-8.fc7.i386
    Jan 19 13:16:24 Installed: netcdf - 3.6.2-1.fc7.i386
    Jan 19 13:16:27 Installed: ScientificPython - 2.6-8.fc7.i386
    Jan 19 13:16:28 Installed: ScientificPython-devel - 2.6-8.fc7.i386
    [root@localhost ~]#

  2. #22
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    réponds à ma question précédente s'il te plaît...surl'upgrade

  3. #23
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    sinon pour avancer sur le problème en attendant.

    Supprime le fichier fedora-development.repo.

    Ensuite:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    yum makecache --nogpgcheck
    mets en pièce jointe le résultat de la commande

    Puis encore:

    là aussi mets le résultat de la commande en pièce jointe

  4. #24
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    j'ai supprimé le fichier demandé

    excuse-moi j'ai mal saisi la commande yum makecache --nogpgcheck

    j'ai donc exécuté la deuxième (avant de me rendre compte que la première n'y allait pas)

    yum makecache ( a l'air de bien fonctionner)

    le résultat en piéce jointe jointe (de yum makecahe)
    output2.txt

  5. #25
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    pour répondre à ta question:

    je ne sais pas trop si je suis capable de ré-installer cette machine (je ne me débouille pas bien avec linux)
    et deux: je ne sais pas si ma machine accepte une nouvelle version (c'est une ancienne machine)

    sinon, pour upgarder, tu m'as dit c'est long? c'est à dire?

    pour l'autre option, je ne comprends rien de ce que tu dis désolée si tu peux m'expliquer

  6. #26
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    ok apparemment c'est réparé. Essaie une installation. Par exemple:

    Si ça marche tu pourras tenter l'installation de python-pip et de scikit-learn comme indiqué au début du post.

    Pour la réinstallation effectivement si ta machine est vieille elle n'appréciera peut être pas fedora 23.

    Pour la phrase que tu n'as pas compris c'est bon , en éditant le dossier comme on vient de le faire, ton yum ne pointe plus que des dépôts de fedora-7, et le fait que le yum makecache marche signifie que le gpgcheck marche (avant tu avais une erreur Error checksum, c'est à cause du check gpg).

    pour l'upgrade sans réinstallation, il faut le faire de 7 à 8 puis de 8 à 9 puis de 9 à 10...et donc c'est très long.

  7. #27
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    ça ne marche toujours pas


    [root@localhost ~]# yum install python-pip
    Setting up Install Process
    Parsing package install arguments
    No package python-pip available.
    Nothing to do
    [root@localhost ~]# yum install xclock
    Setting up Install Process
    Parsing package install arguments
    Requested dep: xclock is provided by installed package
    Nothing to do
    [root@localhost ~]#

  8. #28
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    en fait si ça marche, on a réglé les messages d'erreurs que tu avais avec yum, mais maintenant le problème c'est que python-pip n'est pas disponible dans les dépôts de ta version de fedora qui est trop ancienne. Il va falloir installer pip à la main.

    Quelle est ta version de python:

  9. #29
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    bon pour avancer, j'ai vu que tu as installé ScientificPython, je suppose que ça a installé SciPy et NumPy
    A partir de là:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    curl -o /opt/get-pip.py https://bootstrap.pypa.io/get-pip.py
    cd /opt
    python get-pip.py --no-setuptools --no-wheel
    pip install scikit-learn

  10. #30
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    Pour la version: c'est Python 2.5 d'ailleurs j'ai voulu installer la nouvelle verison de python 3et + et c'est le même soucis pas package available



    Ensuite, j'ai fait ce que tu m'a demandé de faire:
    1-la première commande curl -o /opt/get-pip.py https://bootstrap.pypa.io/get-pip.py
    ne fonctionnait pas il me demande d'introduire la commande avec l'option -k (ce que j'ai fait en deuxième lieu)

    voilà ce qu'il m'affiche avec l'option -o
    curl -o /opt/get-pip.py https://bootstrap.pypa.io/get-pip.py

    curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    More details here: http://curl.haxx.se/docs/sslcerts.html

    curl performs SSL certificate verification by default, using a "bundle"
    of Certificate Authority (CA) public keys (CA certs). The default
    bundle is named curl-ca-bundle.crt; you can specify an alternate file
    using the --cacert option.
    If this HTTPS server uses a certificate signed by a CA represented in
    the bundle, the certificate verification probably failed due to a
    problem with the certificate (it might be expired, or the name might
    not match the domain name in the URL).
    If you'd like to turn off curl's verification of the certificate, use
    the -k (or --insecure) option.


    avec l'option -k il m'affiche du texte bizarre et à la fin
    if __name__="__main__":
    main()

    ensuite je suis passée à la deuxième commande ok et la troisème commande voilà son resultat
    [root@localhost opt]# python get-pip.py --no-setuptools --no-wheel
    python: can't open file 'get-pip.py': [Errno 2] No such file or directory

  11. #31
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    donc apparemment la machine a un problème SSL/TLS. A tout hasard, est ce que votre machine est à l'heure (date+heure)?

    sinon script modifié à tester:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
     curl -k -o /opt/get-pip.py https://bootstrap.pypa.io/get-pip.py
    cd /opt
    python get-pip.py --no-setuptools --no-wheel
    pip install scikit-learn

  12. #32
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    c'est python get-pip qui génère une erreur maintenant

    [root@localhost opt]# curl -k -o /opt/get-pip.py https://bootstrap.pypa.io/get-pip.py
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 1476k 100 1476k 0 0 174k 0 0:00:08 0:00:08 --:--:-- 197k



    [root@localhost opt]# python get-pip.py --no-setuptools --no-wheel
    File "get-pip.py", line 43
    _b85alphabet = (b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    ^
    SyntaxError: invalid syntax

  13. #33
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    pour l'horaire..oui c'est bon c'est OK

  14. #34
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    il faut donc changer de version de python. La version 2.5 est trop ancienne.

    Tu peux toujours essayer:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    yum info python --showduplicates
    pour voir si il y a une version plus récente dans les dépôts de ta version, mais ça m'étonnerait.

    D'ailleurs le site de scikit-learn indique qu'il faut python en version 2.6 minimum

  15. #35
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    bon...si je comprends bien il me faut une nouvelle machine
    car meme l'option --showduplicates ne fonctionne pas
    merci bien à vous
    s'il y a encore une autre solution alors dites-le moi mais je désespère

    [root@localhost ~]# yum info python --showduplicates
    Usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, repolist, groupupdate, info, search, check-update, list, remove, clean, grouperase >

    Command line error: no such option: --showduplicates

  16. #36
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    La dernière solution: récupérer les sources de python, installer ses dépendances et compiler, ce qui est un tantinet plus complexe.

    Il faut d'abord commencer par installer un environnement de développement. Pouvez vous nous renvoyer la sortie de:

  17. #37
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    voilà

    [root@localhost ~]# yum grouplist
    Setting up Group Process
    comps-f7.xml 100% |=========================| 1.2 MB 00:09
    Installed Groups:
    Office/Productivity
    Engineering and Scientific
    Administration Tools
    Editors
    System Tools
    GNOME Software Development
    Text-based Internet
    X Software Development
    GNOME Desktop Environment
    Authoring and Publishing
    Network Servers
    Hardware Support
    Games and Entertainment
    Legacy Software Development
    X Window System
    Graphics
    Web Server
    Printing Support
    Mail Server
    Server Configuration Tools
    Development Libraries
    Development Tools
    Sound and Video
    Graphical Internet
    Available Groups:
    MySQL Database
    Window Managers
    Fedora Packager
    XFCE Software Development
    Virtualization
    Legacy Network Server
    DNS Name Server
    FTP Server
    XFCE
    Clustering
    Java Development
    Web Development
    Windows File Server
    Eclipse
    KDE Software Development
    KDE (K Desktop Environment)
    Educational Software
    PostgreSQL Database
    News Server
    Done
    [root@localhost ~]#

  18. #38
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    Donc on y va (le process va être long):

    EDIT: apparemment d'après votre commande yum, l'environnement de développement est déjà installé
    Installation de l'environnement de développement:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    yum -y group install "Development Tools"
    yum -y groupinstall "Development Libraries"


    Installation d'une dépendance à l'installation de pip:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    yum -y install openssl-devel
    Une fois que c'est terminé on passe à python:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    mkdir -p /usr/local/src 2>/dev/null
    curl -k -o /usr/local/src/Python-2.7.10.tgz https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
    cd /usr/local/src
    tar -xzf Python-2.7.10.tgz
    cd Python-2.7.10
    ./configure
    make
    make install
    Et enfin on récupère le script d'installation de pip:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    curl -k -o /opt/get-pip.py https://bootstrap.pypa.io/get-pip.py
    cd /opt
    /usr/local/bin/python get-pip.py --no-setuptools --no-wheel
    pip install scikit-learn

  19. #39
    Membre régulier

    Inscrit en
    Août 2007
    Messages
    308
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 308
    Points : 100
    Points
    100
    Billets dans le blog
    1
    Par défaut
    tout semble bien fonctionner sauf la dernière commande

    je t'envoie l'output des dernières commandes


    [root@localhost Python-2.7.10]# curl -k -o /opt/get-pip.py https://bootstrap.pypa.io/get-pip.py
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 1476k 100 1476k 0 0 36865 0 0:00:41 0:00:41 --:--:-- 33515


    [root@localhost Python-2.7.10]# cd /opt


    [root@localhost opt]# /usr/local/bin/python get-pip.py --no-setuptools --no-wheel
    Collecting pip
    /tmp/tmpkjgKfc/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/l...missingwarning.
    Downloading pip-8.0.2-py2.py3-none-any.whl (1.2MB)
    100% |████████████████████████████████| 1.2MB 48kB/s
    Installing collected packages: pip
    Successfully installed pip-8.0.2


    [root@localhost opt]# pip install scikit-learn
    Collecting scikit-learn
    /usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/l...missingwarning.
    SNIMissingWarning
    Downloading scikit-learn-0.17.tar.gz (7.8MB)
    100% |████████████████████████████████| 7.8MB 16kB/s
    Could not import setuptools which is required to install from a source distribution.
    Please install setuptools.

  20. #40
    Membre expérimenté
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Avril 2008
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2008
    Messages : 875
    Points : 1 394
    Points
    1 394
    Par défaut
    ok
    donc maintenant:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    cd /opt
    curl -k -o /opt/ez_setup.py https://bootstrap.pypa.io/ez_setup.py
    cat ez_setup.py | /usr/local/bin/python -
    pip install scikit-learn

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 3 PremièrePremière 123 DernièreDernière

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo