Build coolprop manually

160 views
Skip to first unread message

Rubens Toledo Toledo

unread,
Sep 6, 2021, 3:36:04 PM9/6/21
to coolprop-users

Hey everyone!

I've just installed fedora 34 and it seems that CoolProp don't support python 3.9 yet. My pip install return error as described in this link https://github.com/CoolProp/CoolProp/issues/1992 and the user ibell said that it should work if build manually from source. Can someone point me to how can I build this ?
Also, I mainly use CoolProp on jupyter notebook. Building the package manually will make CoolProp behave as usual on Jupyter ?

Thank you!

Ian Bell

unread,
Sep 6, 2021, 4:13:52 PM9/6/21
to coolpro...@googlegroups.com
That's right.   But you can built it yourself.   Follow the instructions here: http://www.coolprop.org/coolprop/wrappers/Python/index.html#manual-installation

--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/22aabb65-8b18-44b0-86c7-bd36961aec9en%40googlegroups.com.

Rubens Toledo Toledo

unread,
Sep 6, 2021, 4:46:45 PM9/6/21
to coolprop-users
Ian, thank you for you reply!

I've already tried it! Thinking about, I should have listed my attempts in order to make it work. Anyway, for the link you sent me it return the following:
"
Traceback (most recent call last):
  File "/home/BigT/Coolprop/CoolProp/wrappers/Python/setup.py", line 249, in <module>
    import Cython
ModuleNotFoundError: No module named 'Cython'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "/home/BigT/Coolprop/CoolProp/wrappers/Python/setup.py", line 251, in <module>
    raise ImportError("Cython not found, please install it.  You can do a pip install Cython")
ImportError: Cython not found, please install it.  You can do a pip install Cython
"

However, Cython is already installed. When I try to run pip install Cython, it returns me:
"
Requirement already satisfied: Cython in /home/BigT/.local/lib/python3.9/site-packages (0.29.24)
"
For my attempts: I have tried downgrade python to 3.8, which I read that is supported by CoolProp (by downgrade I mean virtualenviroment which I have tried with Ananconda, pyenv and pipenv). I did install a successful environment with python 3.8 which installed CoolProp, but it seems that Jupyter Notebook will load the most recent version o python despite being load on a virtualenvironment. After this point I crossed with the git link and I'm trying to build it!

Thank you!

Ian Bell

unread,
Sep 6, 2021, 4:49:36 PM9/6/21
to coolpro...@googlegroups.com
I think you need to use the right pip.   You should always do python -m pip... to make sure you get the pip matching your python.

Rubens Toledo Toledo

unread,
Sep 6, 2021, 4:53:16 PM9/6/21
to coolprop-users
Got it, trying it right now.


Thank you!

Rubens Toledo Toledo

unread,
Sep 6, 2021, 5:30:03 PM9/6/21
to coolprop-users
Okay, got it to work.

In my case python -m pip didn't solve the problem, but a yum install Cython did it! I fail to understand why, but it is working as intended now. Glad you helped me, really appreciated.

Best Regards
Reply all
Reply to author
Forward
0 new messages