unable to get matlab to recognize the python installed on my computer

58 次查看(过去 30 天)
I am working with Matlab R2021a in Windows. There is an installed python version on the computer.
It was installed using Anaconda, when i open an anaconda promt and use 'python -V' the answer i get is 'Python 3.8.8'.
When i use the command 'pyenv' in my matlab command window i get an empty PythonEnvironment structure.
I also tried downloading python version 3.8.0 from https://www.python.org/downloads/release/python-380/, following the instructions in the Matlab Help documentation, but still - using 'pyenv' results in an empty PythonEnvironment structure.
What am i doing wrong?
Thanks!

采纳的回答

Yongjian Feng
Yongjian Feng 2022-1-19
python on Windows might be tricky. Did you follow this page? Maybe you need to setup your PATH environment variable first?
  4 个评论
Hadas Ofir
Hadas Ofir 2022-1-19
ok, after adding it ALSO to the path of the "system enviroument variables" it works.
Yongjian Feng
Yongjian Feng 2022-1-19
Yes, this is the path I meant. Matlab needs this to look for the python executable. Please accept the answer if it works.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by