Effacer les filtres
Effacer les filtres

matlab python interface import tensorflow error

2 vues (au cours des 30 derniers jours)
Jet Yu
Jet Yu le 20 Juin 2018
Commenté : David Goerig le 27 Août 2019
Hi, I am trying to blend matlab codes with a python solver, but a error
Python Error: ImportError: No module named tensorflow
pop when I execute
py.importlib.import_module('myModule')
to test if it goes through. I have try to update the py.sys.path, but it does not work. Settting are Matlab2018a; python2.7, tensorflow1.60(both install via Anaconda2). I am sure the tensorflow is well installed and the python codes is running well. Any one can help?
  3 commentaires
Bingzhao Shan
Bingzhao Shan le 16 Oct 2018
What it means to start from bash? Do i just type matlab to start MATLAB from bash?Thanks!
David Goerig
David Goerig le 27 Août 2019
Open Anaconda Prompt and type matlab.
This should solve it

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by