且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在VS Code和Ubuntu中使用Keras模块运行python代码?

更新时间:2021-08-10 02:56:44

您很有可能在VS代码和终端中使用了不同的python版本:

most likely you are using different python versions in VS code and terminal:

在VS代码中检查您的python路径:

check your python path in VS code:

import sys
print(sys.path)

并将其与您的终端中此代码的结果进行比较:

and compare it to the result of this code in your terminal:

which python