Feedback on Installation Procedure #1839
gustavo-dias
started this conversation in
General
Replies: 2 comments 1 reply
|
Hi @GbotemiB, as mentioned previously, here is my feedback on the installation procedure. Happy to discuss! Perhaps @kwaku-duah is also interested in the topic. |
0 replies
|
Hi @gustavo-dias, thank you for the feedback. Regarding your feedback;
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
My observations on the installation guide provided here. In what follows, let CME mean conda/mamba environment.
1. Section "Java"
It is not clear if Java is to be installed directly in the user's (local) machine or inside a CME. The guide instructs the user to check if Java is available running:
without mentioning whether or not any particular CME must be active. If not, it recommends installing it running:
which suggests that Java must be installed in a CME; however it does not mention which one.
Remarks:
At this point the user hasn't been instructed yet to install conda, mamba or even create, activate any particular CME.
If one installs Java as the command suggests e.g. in PyPSA-Earth's CME, it makes changes as the summary below depicts:
Install: 10 packages
Change: 14 packages
Upgrade: 51 packages
Downgrade: 1 packages
Which may cause post-installation compatibility issues.
Feedback:
Make it clear where to install:
If (b) is the case and PyPSA-Earth's CME is the proper CME, I would place the Java installation section after the "Install with Conda/Mamba" section (where the user effectively creates said environment).
2. Section "Install Dependencies"
It recommends to install miniconda first and then install mamba inside conda's base environment. Besides mamba being faster than conda itself, there might be other hard technical requirement to do so (in the past, perhaps), but mamba is a drop in for miniconda (i.e. a direct alternative), and should/can be installed directly in the user's (local) machine.
Feedback:
3. Further ideas/feedback
Have a (bash) script to formally check the installation (i.e. give the user a mean to check if the installation was successful).
Perhaps remove old content like the Youtube videos [2], [3]: outdated material may hinder more than help newcomers.
Provide a more straight forward step-by-step installation tutorial like the example below (for Linux).
Example Linux Installation Instructions (click to expand).
Performed on Ubuntu 24.04.4 LTS as of 2026/05/13 1.
Update apt (recommended not required):
Install Git:
Install and setup VSCode:
Install Mamba (extracted from the website):
Fork PyPSA-Earth repo into your github account [how-to].
Clone forked repo to disk [see how-to above]:
Create the mamba environment with the lock yaml file:
Install java JDK 17 or 21 in your (local) machine:
Footnotes
I managed to run the tutorial with no errors using this installation procedure. ↩
All reactions