Python : Nouvel utilisateur perdu
Résolu
SangJun
Messages postés
23
Date d'inscription
Statut
Membre
Dernière intervention
-
algury -
algury -
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 : 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
A voir également:
- Python : Nouvel utilisateur perdu
- Citizen code python avis - Accueil - Outils
- Mot secret python pix ✓ - Forum Python
- Python est introuvable. exúcutez sans argument pour procúder ó l ✓ - Forum Python
- Python par la pratique : 101 exercices corrigés pdf - Forum Python
- Exercice python - Forum Python
6 réponses
J'ai une erreur pour désinstaller et je me retrouvé bloqué pour réinstaller. Voici ce qui s'affiche pendant la désinstallation : http://img442.imageshack.us/img442/1817/erreurlq6.jpg
"Enthought" Python Distribution ??
Je te suggère de prendre la distribution officielle de Python, celle qui marche bien:
https://www.python.org/downloads/
Je te suggère de prendre la distribution officielle de Python, celle qui marche bien:
https://www.python.org/downloads/
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Après suppression de dossiers, réparation avec le fichier d'installation et désinstallation, je suis arrivé à quelque chose de propre :)
Sinon, il y a aussi une distribution Python libre pour Windows : Python(x,y), une distribution Python pour les scientifiques qui permet une installation à la carte, complètement personnalisable.
Fini les problèmes d'installation/configuration..... récupération de documentation par ci, par là... tout est dans la boîte !
http://www.pythonxy.com
Fini les problèmes d'installation/configuration..... récupération de documentation par ci, par là... tout est dans la boîte !
http://www.pythonxy.com