ModuleNotFoundError:没有名为“保险丝”的模块

时间:2019-08-14 10:25:21

标签: google-cloud-platform gcsfuse

我已经使用Google Cloud上的AI平台设置了GPU Jupyter Notebook VM。服务器运行Debian Stretch。

我想将我创建的名为example的存储桶安装到名为/home/jupyter/transfer的文件夹中。我一直遵循here概述的说明,但是运行gsfuse example /home/jupyter/transfer时出现错误:

ModuleNotFoundError: No module named 'fuse'

我在fuse上安装了:

sudo apt-get install fuse

成功,但是gsfuse代码仍然无法运行。然后,我使用以下方法安装了pip软件包:

pip install fuse-python

它仍然不起作用。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

经过反复试验,我设法弄清楚了这一点。问题出在python软件包以及我在哪里安装。

如果您这样做:

sudo apt-get install fuse
pip install -U fusepy --user
gsfuse example /home/jupyter/transfer --background 

它将运行(其中--background)在背景中运行安装。