Installation of CoolProp with Python 3.8

85 views
Skip to first unread message

Rajendar Mallepally

unread,
Dec 11, 2019, 9:03:45 AM12/11/19
to coolprop-users
Hello CoolProp Users,

I am new to this group and trying to install CoolProp. I have Windows 10 Enterprise (64 bit) on my machine. I installed python 3.8 and tried to install CoolProp via "pip install CoolProp" and getting an error message "saying Microsoft C++ 14.0 is required and wonder whether it is really needed for CoolProp? I appreciate any kind of help in this issue.

Thanks,
Raj

Please see the error message:

C:\Users\XXX\Documents\Python> py -m pip install CoolProp
Collecting CoolProp
     |████████████████████████████████| 12.8MB 242kB/s
Installing collected packages: CoolProp
    Running setup.py install for CoolProp ... error
    ERROR: Command errored out with exit status 1:
 
    Complete output (44 lines):
    Cython will not be used; cy_ext is cpp
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\BibtexParser.py -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\constants.py -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\HumidAirProp.py -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\State.py -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\__init__.py -> build\lib.win-amd64-3.8\CoolProp
    creating build\lib.win-amd64-3.8\CoolProp\GUI
    copying CoolProp\GUI\CoolPropGUI.py -> build\lib.win-amd64-3.8\CoolProp\GUI
    copying CoolProp\GUI\PsychScript.py -> build\lib.win-amd64-3.8\CoolProp\GUI
    copying CoolProp\GUI\__init__.py -> build\lib.win-amd64-3.8\CoolProp\GUI
    creating build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\Common.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\ConsistencyPlots.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\Plots.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\psy.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\PsychChart.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\PsychScript.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\SimpleCycles.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\SimpleCyclesCompression.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\SimpleCyclesExpansion.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\Tests.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    copying CoolProp\Plots\__init__.py -> build\lib.win-amd64-3.8\CoolProp\Plots
    creating build\lib.win-amd64-3.8\CoolProp\tests
    copying CoolProp\tests\runner.py -> build\lib.win-amd64-3.8\CoolProp\tests
    copying CoolProp\tests\test_CoolPropState.py -> build\lib.win-amd64-3.8\CoolProp\tests
    copying CoolProp\tests\test_plots.py -> build\lib.win-amd64-3.8\CoolProp\tests
    copying CoolProp\tests\test_Props.py -> build\lib.win-amd64-3.8\CoolProp\tests
    copying CoolProp\tests\__init__.py -> build\lib.win-amd64-3.8\CoolProp\tests
    copying CoolProp\AbstractState.pxd -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\cAbstractState.pxd -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\constants_header.pxd -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\CoolProp.pxd -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\State.pxd -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\typedefs.pxd -> build\lib.win-amd64-3.8\CoolProp
    copying CoolProp\Plots\psyrc -> build\lib.win-amd64-3.8\CoolProp\Plots
    running build_ext
    building 'CoolProp.CoolProp' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------

Ian Bell

unread,
Dec 12, 2019, 12:42:20 AM12/12/19
to coolpro...@googlegroups.com
I did some work to get python 3.8 stuff working, but I want a bit more testing before we push the code.

--
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/7eda0f15-7adb-40d2-b22b-b3e5bb2a0711%40googlegroups.com.

Matthis Thorade

unread,
Dec 12, 2019, 3:02:23 AM12/12/19
to coolprop-users
pip is looking for the files here:
As you see, there are no precompiled binaries for python 3.8, so pip instead downloads the Source release, and tries to build the binary itself. Compiling the binary should be done with the same compiler that was used to compile the python binaries, you can see the corrsponding versions here:
You could just install the matching compiler and see if pip succeeds, or you wait until the changes that Ian mentioned are uploaded and tested.

Ian Bell

unread,
Dec 12, 2019, 8:17:37 AM12/12/19
to coolpro...@googlegroups.com
For now I would recommend you use Python 3.7, the wheels are available for 3.7, and will be soon available for 3.8

--
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.
Reply all
Reply to author
Forward
0 new messages