Mac上的Tensorflow安装失败

时间:2017-04-18 01:17:28

标签: python tensorflow canopy

我遇到以下问题(命令和消息)。我正在使用Canopy IDE进行Python编程。这可能导致问题吗?关于我所缺少的任何想法。感谢。

Arun
================
MacBook:~ AGupta$ virtualenv --system-site-packages ~/tensorflow
Using base prefix '/Applications/Canopy.app/appdata/canopy-1.7.4.3348.macosx-x86_64/Canopy.app/Contents'
New python executable in /Users/AGupta/tensorflow/bin/python
dyld: Library not loaded: @rpath/Python
  Referenced from: /Users/AGupta/tensorflow/bin/python
  Reason: image not found
ERROR: The executable /Users/AGupta/tensorflow/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/Users/AGupta' (should be u'/Users/AGupta/tensorflow')
ERROR: virtualenv is not compatible with this system or executable

1 个答案:

答案 0 :(得分:0)

从Canopy包管理器中,安装或更新这些包的最新可用版本:

funcsigs,mock,protobuf,wheel,numpy

然后打开Canopy Terminal窗口(从Canopy Tools菜单中)并输入:

pip install tensorflow

确认您收到的消息:virtualenv与使用基于venv的虚拟环境的Canopy 1.x不兼容.Canopy 2.x返回到平坦(非虚拟)环境,让您可以使用无论是你想要的还是venv或virtualenv。

相关问题