Cannot find specified version with pyenv function
조회 수: 5 (최근 30일)
이전 댓글 표시
I tried to use python in MATLAB with pyenv in Linux system. The Status initially is NotLoaded but everything else looks correct to me as shown below:

Following the example, I typed pyenv('Version','2.7'), received following error:

Status is still NotLoaded. I tried using py.list({'a','b'}), but received: "Unable to resolve the name py.list"
Linux doesn't have Pyenv from Github installed but has wrapper intepreter, executable and library. Works with PyCharm IDE.
댓글 수: 0
답변 (1개)
Meet
2024년 12월 11일
Hi Yulin,
Specifying the Python version number to "pyenv" function only works on Windows platforms. On other platforms, such as Mac or Linux, you must specify the path to the executable. In this case, the command should look like this:
pyenv('Version', '/usr/local/pkg/python/2.7.10/bin/python2.7')
Hope this resolves your query!!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!