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

Déploiement/Installation Python Discussion :

Installation Python : path


Sujet :

Déploiement/Installation Python

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    54
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 54
    Points : 43
    Points
    43
    Par défaut Installation Python : path
    Bonjour à tous,

    Après avoir tâté de plusieurs langages, voilà que je débarque sur du Python.
    Me voilà dans l'installation d'Opus & UrbanSim, et je commence par l'installation de Python. D'un dépârt qui commençait simple, je suis déjà bloqué

    Je vais vous exposer un peu ce que j'ai fait :

    Step 1: Installing Python
    Opus and UrbanSim are implemented in Python, making heavy use of numerical Python packages and other software. Currently, Opus and UrbanSim are known to work on either Python 2.4 or Python 2.5. The official Python website includes documentation, downloads, and much else.

    J'installe les versions 2.6 et 2.5

    # Download and install the Python Enthought Edition – Python 2.4.3 for Windows Enhanced Python Distribution from http://code.enthought.com/enthon/. This will install Python and all of UrbanSim's required Python packages, as well as several other useful Python packages.
    # Upgrade your numpy (http://numpy.scipy.org/) package to at least version 1.0.1. This is a fast array-processing library used throughout Opus.

    Pas de problème (hormis que http://code.enthought.com/enthon/ renvoie une erreur 404)

    # Install scipy 0.5.2 (http://www.scipy.org/); this is an open-source software for mathematics, science, and engineering. Opus needs the scipy.ndimage package.
    (If you have trouble installing scipy you can install just the ndimage packages.)[2]

    Messages d'erreurs => installation par ndimage

    1. Create a site-packages directory into which to install additional packages (e.g.: ~home/python24/lib/python2.4/site-packages).
    => c:\python25\Lib\site-packages

    2. Add this site-packages directory to your PYTHONPATH.
    3. Create a scipy directory within site-packages (e.g. ~home/python24/lib/python2.4/site-packages/scipy). This is needed so that the two scipy subpackages have a place in which to install.
    4. Create a __init__.py file in the scipy folder (e.g. ~/home/python24/lib/python2.4/site-packages/scipy/__init__.py). Python needs this file to exist in order to be able to import scipy. The file may be empty.
    La précédente installation a déjà installé plusieurs fichiers => vider __init__.py de son contenu grace à Notepad

    5. Download ndimage.zip. This version is compatible with the latest Opus and UrbanSim.
    6. Unzip ndimage.zip.
    7. cd into the unzipped directory.
    8. Build and install the package via a command like the following. The path after the --prefix parameter is the location containing your Python's lib directory:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    python setup.py install --prefix=c:\python25

    Message d'erreur 'python' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes


    Donc voilà où j'en suis sans trop savoir comment m'en sortir.


    Merci d'avance

  2. #2
    Membre expérimenté Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Points : 1 728
    Points
    1 728
    Par défaut
    Salut,

    regarde cette entrée dans la , il te faut modifier ton path système.
    "Etre conscient de la difficulté permet de l'éviter.."
    Lao-Tseu.

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    54
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 54
    Points : 43
    Points
    43
    Par défaut
    Citation Envoyé par pacificator Voir le message
    Salut,

    regarde cette entrée dans la , il te faut modifier ton path système.
    Dans mes variables d'environnements, j'avais mis PYTHONPATH c:\python25\Lib\site-packages et maintenant j'ai modifié en mettant c:\Python25

    Pas de changements, j'aurai mal compris quelque chose?

  4. #4
    Membre expérimenté Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Points : 1 728
    Points
    1 728
    Par défaut
    il faut ajouter c:\python25 à la variable path dans Panneau de Configuration->Système->Avancé->Variables d'environnement
    "Etre conscient de la difficulté permet de l'éviter.."
    Lao-Tseu.

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    54
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 54
    Points : 43
    Points
    43
    Par défaut
    Voilà, alors maintenant j'ai pour ma variable path : %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Python24;C:\Python24\Scripts;C:\Python24\DLLs;C:\Python24\Enthought\MingW\bin;C:\Python24\Enthought\Graphviz\bin;C:\Python24\Enthought\SWIG-1.3.24;C:\Python24\Lib\site-packages\vtk_python;C:\Python24\Lib\site-packages\wx-2.6-msw-unicode-enthought\wx;C:\Program Files\MySQL\MySQL Server 5.0\bin;c:\Python25

    Je viens d'enlever les chemins que j'ai déplacé (et non supprimé, pour garder une sauvegarde) et ça me donne : %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\MySQL\MySQL Server 5.0\bin;c:\Python25

    Mais pourtant

  6. #6
    Membre expérimenté Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Points : 1 728
    Points
    1 728
    Par défaut
    Faut s'adapter, tu sembles avoir installé python2.4 donc remplace python25 par python24 dans ton path..
    "Etre conscient de la difficulté permet de l'éviter.."
    Lao-Tseu.

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    54
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 54
    Points : 43
    Points
    43
    Par défaut
    Bon je désinstalle tout et je reprend avec quelque chose de propre

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    54
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 54
    Points : 43
    Points
    43
    Par défaut


    Je n'arrive pas à désinstaller
    Et malheureusement la restauration n'était pas activée

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    54
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 54
    Points : 43
    Points
    43
    Par défaut
    Après suppression de dossiers, réparation avec le fichier d'installation et désinstallation, je suis arrivé à quelque chose de propre

  10. #10
    Nouveau Candidat au Club
    Inscrit en
    Avril 2010
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 1
    Points : 1
    Points
    1
    Par défaut SLT
    Comment ajouter python a mon PATH SVP ??????????

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Java/Python : paths qui changent
    Par rednik dans le forum Général Java
    Réponses: 0
    Dernier message: 27/07/2009, 18h03
  2. Installer Python pour AMD64 ou x86 sur Windows XP 32bit?
    Par Doudy dans le forum Déploiement/Installation
    Réponses: 5
    Dernier message: 15/06/2009, 13h08
  3. installer python sous vista
    Par pierrot666 dans le forum Déploiement/Installation
    Réponses: 8
    Dernier message: 01/02/2008, 16h54
  4. Comment installer Python ?
    Par eyquem dans le forum Déploiement/Installation
    Réponses: 12
    Dernier message: 03/05/2007, 09h09
  5. Installer Python avec Apache
    Par vincent_nk dans le forum Déploiement/Installation
    Réponses: 8
    Dernier message: 28/01/2006, 18h21

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