权限错误在ubuntu上安装py4j

时间:2018-10-15 16:14:09

标签: apache-spark ubuntu pyspark py4j

我正在尝试在ubuntu上安装py4j,这是我的spark / pyspark安装的一部分。我在运行pip3 install py4j时收到以下错误消息,我不知道这是什么意思。有人可以说明一下这个问题并建议我如何解决吗?谢谢。

代码:

user@master1:~$ pip3 install py4j
Downloading/unpacking py4j
  Downloading py4j-0.10.7-py2.py3-none-any.whl (197kB): 197kB downloaded
Installing collected packages: py4j
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 206, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 193, in clobber
    os.makedirs(destsubdir)
  File "/usr/lib/python3.4/os.py", line 237, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/py4j-0.10.7.dist-info'

Storing debug log for failure in /home/scot/.pip/pip.log

0 个答案:

没有答案