Добрый день. В Python я совсем новичек, перехожу на него после Java. И уже столкнулся с проблемами. Пытаюсь установить какой-либо пакет с помощью Pip в терминале Ubuntu. Пакеты не устанавливаются. Выдает ошибки:
Downloading/unpacking selenium
Downloading selenium-3.0.2-py2.py3-none-any.whl (915kB): 915kB downloaded
Installing collected packages: selenium
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/selenium'
Storing debug log for failure in /home/user/.pip/pip.log
error: could not create '/usr/local/lib/python3.4/dist-packages/numpy': Permission denied
----------------------------------------
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_user/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-y50gyst1-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_user/numpy
Storing debug log for failure in /home/user/.pip/pip.log