Using Matlab with Ubuntu, Anaconda and Python

2 ビュー (過去 30 日間)
Sebastian Malert
Sebastian Malert 2020 年 9 月 13 日
コメント済み: Ameer Hamza 2020 年 9 月 15 日
I'm using Ubuntu 20.04 LTS. I would like to use Matlab with a specific Anaconda environment. I found out that I have to use the functions pyversion or pyenv to set the path to the python executable file. Which file exactly do I have to link? (~/anaconda3/env/py377/bin/???)
  2 件のコメント
Brenda Zhou
Brenda Zhou 2020 年 9 月 14 日
Currently, MATLAB isn't supported for Anaconda environment.
Ameer Hamza
Ameer Hamza 2020 年 9 月 15 日
Anaconda environment works fine with MATLAB. I tried on mac, and there does not seem to be any issue.

サインインしてコメントする。

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 13 日
To python executable
pyenv('Version', '~/anaconda3/envs/p37/bin/python')
  2 件のコメント
Sebastian Malert
Sebastian Malert 2020 年 9 月 13 日
It works with pyenv. But not with pyversion for Matlab versions until 2019a. I get the error message:
Error using pyversion
Path argument does not specify a valid executable.
I used the same path like with pyenv. Any ideas?
Ameer Hamza
Ameer Hamza 2020 年 9 月 14 日
編集済み: Ameer Hamza 2020 年 9 月 14 日
Are you typing
pyversion('Version', '~/anaconda3/envs/p37/bin/python')
The correct is
pyversion('~/anaconda3/envs/p37/bin/python')
I didn't get any error on running this.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by