tensorflow: installation failed with Virtualenv ERROR:The executable is not functioning tensorflow

Operating System: macOS Sierra 10.12.3 The version of virtualenv is 15.1.0 issue like these: admindeMacBook-Air:~ admin$ virtualenv --system-site-packages ~/tensorflow Using base prefix '//anaconda' New python executable in /Users/admin/tensorflow/bin/python dyld: Library not loaded: @loader_path/../lib/libpython3.5m.dylib Referenced from: /Users/admin/tensorflow/bin/python Reason: image not found ERROR: The executable /Users/admin/tensorflow/bin/python is not functioning ERROR: It thinks sys.prefix is '/Users/admin' (should be '/Users/admin/tensorflow') ERROR: virtualenv is not compatible with this system or executable

I have tried many ways like homebrew, upgrade py, but it does not work at all.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (12 by maintainers)

Most upvoted comments

If you are still struggling, and experiencing this issue:

ERROR: virtualenv is not compatible with this system or executable

Have you tried installing virtualenv with conda and trying again?

conda install virtualenv

What if we don’t want to use Anaconda? What if it’s a straight Python3.5 install? Has anyone solved this?

I am also facing the exactly same issue. OS: Mac Sierra 10.12, Python 3.6, Anaconda 4.4. Follwed the instructions specified in https://www.tensorflow.org/install/install_mac. Error happening in step 3. Tried to change the directory too but still the same error.

@wolffg this looks like a virtualenv problem and not a TensorFlow problem, but if this is a common problem we might need to update our virtualenv install docs. If you think this should work for most people feel free to close and redirect to a different forum.