Using Python >2.7 on MAC

조회 수: 6 (최근 30일)
Alan Chewter
Alan Chewter 2020년 7월 19일
댓글: Melek Ben-Ayed 2020년 11월 16일
Basically matlab is finding r2.7 in /System/Library/Frameworks/Python.framework/Versions/2.7
The python installer for 3.7 or 3.8 (which i need to run some specific scripts) installs here
/Library/Frameworks/Python.framework/Versions/3.7
typing << pyversion 3.7 at matlab command prompt retuens cannot find this version.
>> pyversion '3.7'
Error using pyversion
Cannot find specified version.
>> pyversion
version: '2.7'
executable: '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'
library: '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib'
home: '/System/Library/Frameworks/Python.framework/Versions/2.7'
isloaded: 0
Cannot manually add 3.7 to system folder at System/Library/Frameworks/Python.framework/Versions/
Adding the installation path for the newer version 3.7 to matlab path does not help.
Can someone please tell me the solution to this? Thx!

답변 (1개)

Steven Lord
Steven Lord 2020년 7월 19일
According to the Release Notes support for Python 3.7 was added in release R2019a. It doesn't indicate Python 3.8 is supported as of the current release (R2020a.)
Which release of MATLAB are you using?
  댓글 수: 2
Alan Chewter
Alan Chewter 2020년 7월 20일
hi steven, we are using r2018b. unfortunately we have some legacy code and toolboxes that requires us to hold here for now. any suggestions on how to configure 2018b to access an installation of python 3.7 in the /Library/Frameworks/Python.framework/Versions/3.7 directory or how to configure the mac to move the installation of 3.7 to the appropriate area in the /system/ directory? thx!
Melek Ben-Ayed
Melek Ben-Ayed 2020년 11월 16일
Hi, im having a similar problem. did you end up finding a solution?

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by