equinor / flownet

FlowNet - Data-Driven Reservoir Predictions
GNU General Public License v3.0
63 stars 29 forks source link

Installation problem, ecl>=2.9 and flow path #289

Closed Riccardopeli closed 3 years ago

Riccardopeli commented 3 years ago

I got: Could not find a version that satisfies the requirement ecl>=2.9 The requirement ecl>=2.9 is not satisfied. Indeed, if I try to manually install ecl with pip3 install ecl, the only available version is 0.0.0

pip3 install -e . and replacing the ecl>=2.9 in the setup.py file with ecl, pip cannot locate the flow installation path, even if it is/usr/bin/flow and even correctly defining FLOW_PATH. Note that I have installed the last version flow 2020.10

Any suggestion? Thank you

wouterjdb commented 3 years ago

For the first question:

My first thought would be to try to update pip on your venv/machine:

pip install --upgrade pip

And then try again. Any luck?

Update: I see the README doesn't really state very clearly how to install flownet in a virtual environment. Try this if you haven't already created a virtual environment (assuming your are in the main flownet repository folder):

python3 -m venv venv
source ./venv/bin/activate
pip install --upgrade pip
pip install -e .

For the second question: You should not change the ecl version, I guess you're getting a very old one and that might lead to all kinds of issues. If you try which flow and it says it is in /usr/bin/flow you don't have to set the FLOW_PATH.

Riccardopeli commented 3 years ago

Thank you! That was the point. The flownet installation via pip succeeded !

wouterjdb commented 3 years ago

👍