Installing coolprop on matlab

조회 수: 54 (최근 30일)
Sarah Mignon
Sarah Mignon 2020년 11월 8일
댓글: Walter Roberson 2021년 6월 2일
>> 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
Sarah Mignon
Sarah Mignon 2020년 11월 12일
[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 2021년 6월 2일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by