Python engine error "Invalid Version"

5 ビュー (過去 30 日間)
Ricardo
Ricardo 2024 年 12 月 4 日
編集済み: SACHIN KHANDELWAL 2024 年 12 月 6 日
Dear, I am trying to install the Python engine in MATLAB 2020b using python 3.8.20.
According to the compatibility table, it should be possible, however, I get this error. Could you please help?
(py38) C:\Program Files\MATLAB\R2020b\extern\engines\python>python setup.py install
Traceback (most recent call last):
File "setup.py", line 78, in <module>
setup(
File "C:\ProgramData\anaconda3\envs\py38\lib\site-packages\setuptools\_distutils\core.py", line 145, in setup
_setup_distribution = dist = klass(attrs)
File "C:\ProgramData\anaconda3\envs\py38\lib\site-packages\setuptools\dist.py", line 337, in __init__
self.metadata.version = self._normalize_version(self.metadata.version)
File "C:\ProgramData\anaconda3\envs\py38\lib\site-packages\setuptools\dist.py", line 373, in _normalize_version
normalized = str(Version(version))
File "C:\ProgramData\anaconda3\envs\py38\lib\site-packages\packaging\version.py", line 202, in __init__
raise InvalidVersion(f"Invalid version: {version!r}")
packaging.version.InvalidVersion: Invalid version: 'R2020b'

回答 (1 件)

SACHIN KHANDELWAL
SACHIN KHANDELWAL 2024 年 12 月 6 日
編集済み: SACHIN KHANDELWAL 2024 年 12 月 6 日
I came across some MATLAB answer articles that address a similar issue. I recommend checking out the workaround mentioned in these articles to see if it resolves your problem.

カテゴリ

Help Center および File ExchangeCall MATLAB from Python についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by