Installing coolprop on matlab

81 views (last 30 days)
Sarah Mignon
Sarah Mignon on 8 Nov 2020
Commented: Walter Roberson on 2 Jun 2021
>> pyversion C:\matlab\Python\python.exe
>> pyversion
version: '3.8'
executable: 'C:\matlab\Python\python.exe'
library: 'C:\matlab\Python\python38.dll'
home: 'C:\matlab\Python'
isloaded: 0
>> [v,e] = pyversion; system([e, ' -m pip install --user -U CoolProp'])
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/coolprop/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/coolprop/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/coolprop/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/coolprop/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/coolprop/
Could not fetch URL https://pypi.org/simple/coolprop/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/coolprop/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement CoolProp (from versions: none)
ERROR: No matching distribution found for CoolProp
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ans =
1
Hello,
While trying to have Coolprop library on my matlab, I am facing some errors, that I don't understand. Could you help me understanding this error and debugging it please?
  3 Comments
Sarah Mignon
Sarah Mignon on 12 Nov 2020
[v,e] = pyversion; system([e, ' -m pip install --user -U CoolProp'])
C:\matlab\Python\python.exe: No module named pip
ans =
1
Thank you Anna for your help, it helped me not having this error anymore but now I have this... Seems like Coolprop is really hard to install on matlab.
Do you have by any chance an idea of what is happening here?
Walter Roberson
Walter Roberson on 2 Jun 2021
On MacOS I had to install pip first, as the python version is 2.7 which did not yet have pip installed (pip was automatically installed as of 2.7.9)
What I did on MacOS was to open Terminal (command line) and use
cd /tmp
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
After that I was able to go into MATLAB and execute
[v,e] = pyversion; system([e,' -m pip install --user -U CoolProp'])
As you appear to be using MS Windows, you might need to install curl first; see https://www.addictivetips.com/windows-tips/use-curl-on-windows-10/ . Instead of cd /tmp you can cd to any convenient directory that you have write access to, such as your downloads directory.

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!