How to add the path to a Conda (Python) Environment?

75 ビュー (過去 30 日間)
Jaime Trivino
Jaime Trivino 2021 年 9 月 10 日
コメント済み: Jaime Trivino 2021 年 9 月 15 日
Hi,
I want a MATLAB function to execute a python funtion on a file on my computer, but when I run pyenv it does not show the Conda environment. Is it possible to configure MATLAB to use a local conda environment? If so how should I do it?
Thanks

採用された回答

Jaime Trivino
Jaime Trivino 2021 年 9 月 15 日
I have found that this can be done outside matlab with conda.
  1. Activate conda environment: <conda actuvate myEnv>
  2. Add path to local files: <conda develop /path to my python files>

その他の回答 (1 件)

Yongjian Feng
Yongjian Feng 2021 年 9 月 12 日
This is most likely the same as:
https://www.mathworks.com/matlabcentral/answers/1450479-how-to-add-the-path-to-a-local-python-file-to-be-executed-by-a-matlab-script
In general, using virtual env is challenging.
  1 件のコメント
Jaime Trivino
Jaime Trivino 2021 年 9 月 15 日
Thank you Yongjian. There is an easy shortcut when using conda

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by