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.)
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:[/INDENT][/INDENT]
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