Installing coolprop on matlab
81 views (last 30 days)
Show older comments
>> 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
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.
Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!