Sublime Forum

Library import error [ST3]

#1

Hi, I have an error when I import tensorflow using python3 on mac os 10.12, and got the message: ImportError: No module named ‘_pywrap_tensorflow’

However, I can import the library and run my script smoothly in terminal. Anyone has any idea why this happen?

I am using the following build system, and python3 works in sublime.

{
“cmd”: ["/usr/local/Frameworks/Python.framework/Versions/3.5/bin/python3", “-u”, “$file”],
“file_regex”: “^[ ]File "(…?)”, line ([0-9]*)",
“selector”: “source.python”
}

Thanks!!

0 Likes

#2

I’m on 10.12.2 using python3 in ST3 trying to use tensorflow and I have the same problem, you’re not alone. :disappointed:

If somebody has an explanation or solution, please post it here. :sob:

0 Likes

#3

I solved the problem by run sublime from terminal.

1 Like

#4

You could try to install Fix Mac Path

0 Likes