Bonjour,
(Je viens d'installer Debian 13, avant j'utilisais Debian 11).
Je voudrais pouvoir utiliser le programme Ladybug qui est une bibliothèque Python permettant d'analyser, modifier et visualiser des informations de EnergyPlus Wheather files (epw).
Voici un lien vers Ladybug Tools : https://www.ladybug.tools/ladybug.html
Voici le lien sur Github : https://github.com/ladybug-tools/ladybug
Dans le forum Ladybug voici une réponse en bas de page d'un développeur mostapha en 2021 : https://discourse.ladybug.tools/t/ladyb ... inux/14115 qui propose d'accéder à cette page https://github.com/ladybug-tools/lbt-recipes
Ayant un peu manipulé toutes ces informations mais je n'arrive à rien, quelqu'un peut il m'aider si c'est possible ?
Ladybug
- piratebab
- Site Admin
- Messages : 6038
- Inscription : 24 avr. 2016, 18:41
- Localisation : sud ouest
- Status : En ligne
Bonjour,
est ce que tu as réussi à l'installer via pip ?
Est ce que tu as réussi à faire fonctionner l'exmple de la doc?
Je déplace se sujet dans le forum dédié au codage.
est ce que tu as réussi à l'installer via pip ?
Est ce que tu as réussi à faire fonctionner l'exmple de la doc?
Code : Tout sélectionner
# load epw weather data
from ladybug.epw import EPW
epw_data = EPW('path_to_epw_file')
dry_bulb_temp = epw_data.dry_bulb_temperature
# Get altitude and longitude
from ladybug.location import Location
from ladybug.sunpath import Sunpath
# Create location. You can also extract location data from an epw file.
sydney = Location('Sydney', 'AUS', latitude=-33.87, longitude=151.22, time_zone=10)
# Initiate sunpath
sp = Sunpath.from_location(sydney)
sun = sp.calculate_sun(month=11, day=15, hour=11.0)
print('altitude: {}, azimuth: {}'.format(sun.altitude, sun.azimuth))
- debianjam
- Membre
- Messages : 384
- Inscription : 27 août 2017, 14:18
- Status : Hors-ligne
Bonjour.
Selon cette page : https://github.com/ladybug-tools/lbt-re ... stallation
Voici la traduction dans le terminal, la réponse est qu'il s'agit d'un environnement extérieur. Ensuite je ne sais plus quoi faire.
Selon cette page : https://github.com/ladybug-tools/lbt-re ... stallation
Voici la traduction dans le terminal, la réponse est qu'il s'agit d'un environnement extérieur. Ensuite je ne sais plus quoi faire.
Code : Tout sélectionner
utilisateur1@debian:~$ pip install -U lbt-recipes
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.13/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
utilisateur1@debian:~$ ^C
utilisateur1@debian:~$ python3 -m venv path/to/venv
utilisateur1@debian:~$ ^C
utilisateur1@debian:~$ path/to/venv/bin/python
Python 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> help
Welcome to Python 3.13's help utility! If this is your first time using
Python, you should definitely check out the tutorial at
https://docs.python.org/3.13/tutorial/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To get a list of available
modules, keywords, symbols, or topics, enter "modules", "keywords",
"symbols", or "topics".
Each module also comes with a one-line summary of what it does; to list
the modules whose name or summary contain a given string such as "spam",
enter "modules spam".
To quit this help utility and return to the interpreter,
enter "q", "quit" or "exit".
help> q
You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)". Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
>>> q
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
q
NameError: name 'q' is not defined
>>> quit
utilisateur1@debian:~$ ^C
utilisateur1@debian:~$
Gnome ; mémoire : 3,7Gio; i5 3450 @3.10Ghz x4; c.g. (NV106 (intégrée Intel Ivybridge Desktop)) ou asus gt730 2Gio
- piratebab
- Site Admin
- Messages : 6038
- Inscription : 24 avr. 2016, 18:41
- Localisation : sud ouest
- Status : En ligne
Il faut utiliser pipx au lieu de pip sur debian. pipx va gérer automatiquement les environnement virtuel.
Un environnement virtuel sert à isoler les script python qui ne sont pas d'origine debian de ton systeme principal. Ca évite de casser ton systeme si le script a un problème.
Un environnement virtuel sert à isoler les script python qui ne sont pas d'origine debian de ton systeme principal. Ca évite de casser ton systeme si le script a un problème.