(gclalcli)错误:无法创建' build / bdist.linux-x86_64 / egg':权限被拒绝

时间:2015-09-05 23:25:49

标签: python linux

我在安装gcalcli的战斗中。我使用this setup因为其他更简单的方法不起作用。我在必须输入sudo python setup.py install

的步骤中

我明白了:

running installenter code here
running bdist_egg
running egg_info
writing requirements to gcalcli.egg-info/requires.txt
writing gcalcli.egg-info/PKG-INFO
writing top-level names to gcalcli.egg-info/top_level.txt
writing dependency_links to gcalcli.egg-info/dependency_links.txt
reading manifest file 'gcalcli.egg-info/SOURCES.txt'
writing manifest file 'gcalcli.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install

creating build/bdist.linux-x86_64/egg
error: could not create 'build/bdist.linux-x86_64/egg': Permission denied

此时我刚刚给予了所有权限,甚至允许它运行,但我不知道该怎么做,因为它告诉我python模块不存在

1 个答案:

答案 0 :(得分:1)

我发现sudo在NFS安装目录中不起作用。我的/ u /目录位于NFS安装目录中。我不得不用root创建/ tmp / module。然后我将所有模块文件复制到/ tmp / module并以root身份执行:“python setup.py install”;它起作用了。