在 ubuntu 上使用 pip3 正确安装 tflearn

Install tflearn using pip3 on ubuntu correctly

我看到很多关于使用 pip 在 tflearn 上安装的答案,但 none 对我有帮助。我正在使用 python3 和 tensorflow (1.0.0)、tensorflow-tensorboard (1.5.0) 和 tflearn (0.3.2)。如果我安装 tflearn 它说 "cant import tflearn it isn't installed" 或类似的东西但后来我卸载了它并再次安装了几次使用:-

 sudo pip3 install tflearn

也尝试过:-

 sudo pip install tflearn

我可以看到 tflearn 同时使用:-

  pip list

和:-

 pip3 list

如果我尝试在没有 sudo 的情况下安装它,它会说未授予权限。我如何使用 pip3 在 ubuntu 16.04 上正确设置 tflearn,请有人告诉我,因为过去 3 天我一直在为这件事挠头。 我的 pip/pip3 对其他包工作正常,只有 tflearn 导致问题。

您只需稍微更改一下安装命令即可。

sudo python3.6 -m pip install tflearn 对我有用。

显然您还需要安装 tenseflow。