添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
>> 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?
Hi! I was also having a similar issue trying to use CoolProp for a project. I noticed that the CoolProp website uses Python 3.6 for the version. I believe I had Python 3.8 as well and tried downloading Python 3.6 and changed the version used in MATLAB to 3.6. After doing this I was able to successfully run the command to have CoolProp loaded into MATLAB. I am now having an issue calling values, but CoolProp is loaded in.
Try downloading Python 3.6 and changing your version in MATLAB to 3.6 using the commands on the CoolProp website. Maybe that will resolve the errors.
[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?
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.

Community Treasure Hunt

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

Start Hunting!

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

América Latina (Español) Canada (English) United States (English)