Matlab pyversion command can not find library for python3.4

前端 未结 3 1855
梦如初夏
梦如初夏 2021-01-14 00:14

I want call python3.4 from the matlab. The default version is python2.7, when I run pyversion in matlab, it shows :

   version: \'2.7\'
executable: \'/usr/bi         


        
3条回答
  •  梦谈多话
    2021-01-14 00:59

    Run python:

    >>> import sys
    >>> print(sys.executable)
    

    Copy the answer and use it in Matlab as follow:

    >> pyversion('C:\Users\84757\AppData\Local\Programs\Python\Python38\python.exe');
    

提交回复
热议问题