0
>>> import PyV8
Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "build/bdist.linux-x86_64/egg/PyV8.py", line 33, in <module>
    File "build/bdist.linux-x86_64/egg/_PyV8.py", line 7, in <module>
    File "build/bdist.linux-x86_64/egg/_PyV8.py", line 3, in __bootstrap__
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2760, in <module> 
        add_activation_listener(lambda dist: dist.activate())
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 738, in 
        subscribe callback(dist)
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2760, in <lambda> 
        add_activation_listener(lambda dist: dist.activate())
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2314, in activate 
        for pkg in self._get_metadata('namespace_packages.txt'):
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2305, in _get_metadata 
        for line in self.get_metadata_lines(name):
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1369, in get_metadata_lines
        return yield_lines(self.get_metadata(name))
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1361, in get_metadata
        return self._get(self._fn(self.egg_info,name))
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1470, in _get
        stream = open(path, 'rb')
    IOError: [Errno 13] Permission denied:  
        '/usr/local/lib/python2.7/dist-packages/google_apputils-0.4.2-py2.7.egg/EGG-INFO/namespace_packages.txt'

我在安装 PyV8 时遇到了一些问题,如此处所述 -错误:命令 'c++' failed with exit status 1但使用http://ubuntuforums.org/showthread.php?t=1480282#post_11247864解决了这个问题。但是现在当我导入时,它说 Permission Denied。

4

1 回答 1

0

/usr/local/lib/python2.7/dist-packages/google_apputils-0.4.2-py2.7.egg/EGG-INFO/namespace_packages.txt 的权限是什么?

于 2016-03-21T14:05:15.850 回答