Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Issues #495

Closed
timebis opened this issue Sep 4, 2022 · 3 comments
Closed

Installation Issues #495

timebis opened this issue Sep 4, 2022 · 3 comments

Comments

@timebis
Copy link

timebis commented Sep 4, 2022

Hi guys,

Thanks again for the work made with Flexmeasures.
I'm currently trying to play with the project.

Here is a share of the issues I got during the installation process :

Difficulties to pip install flexmeasures with Python3.10 (both with ubuntu and Windows 11)

image
image

I manage to make it work with python3.9.13

Difficulties with the package "PIL" or "Pillow"

image

I finaly made it work with python3.9 -m pip install -U pillow==9.0.1

Did I miss something ?

@nhoening
Copy link
Contributor

nhoening commented Sep 4, 2022

Hi @timebis

About the first issue: we know that FlexMeasures 0.11 is not supporting 3.10 yet ― (and we say so). I believe the latest dependency management PRs (#476, #494) should help with that, once 0.12 is out.

But you figured out how to move forward!

I can't make much of the pillow problem. pillow is part of our requirements.

I notice that in the end, your computer says that pillow already exists in/usr/lib. Plus, and that is a guess, it seems you are not using a virtual environment. The cleanest way to work is always in a virtual environment. Maybe that will be more straightforward?

I ran this:

mkvirtualenv --python python3.9  fm-env-39-testinstall
pip install flexmeasures

and that worked well.

It seems re-installing pillow is one prescribed remedy against this problem (see here, for example). Installing it fresh in a virtual environment thus avoids this pitfall :)

Virtual environments are awesome in general, for all sort of reasons, so if you’re not using them already, you should :)

Curious to hear if that would make this problem go away :)

Excited to learn if you have a use case in mind - let us know if you do and we can discuss how FlexMeasures could help!

@timebis
Copy link
Author

timebis commented Sep 5, 2022

Thanks for your answer !

Indeed I don't have the venv reflex when I am working without my IDE. It solved the issue : pip install flexmeasures worked perfectly :)

Sure, I will keep you informed.

@nhoening
Copy link
Contributor

nhoening commented Sep 5, 2022

Super!

@nhoening nhoening closed this as completed Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants