Matlab pyversion command can not find library for python3.4

前端 未结 3 1880
庸人自扰
庸人自扰 2021-01-14 00:27

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:45

    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');
    

提交回复
热议问题