Python 如何在ubuntu 13上安装pyinstaller?

Python 如何在ubuntu 13上安装pyinstaller?,python,pyinstaller,ubuntu-13.10,Python,Pyinstaller,Ubuntu 13.10,我试过:(参考安装手册) 但它给出了一个错误: creating /usr/local/lib/python2.7/dist-packages/PyInstaller error: could not create '/usr/local/lib/python2.7/dist-packages/PyInstaller': Permission denied ---------------------------------------- Command /usr/bin/python -c

我试过:(参考安装手册)

但它给出了一个错误:

creating /usr/local/lib/python2.7/dist-packages/PyInstaller

error: could not create '/usr/local/lib/python2.7/dist-packages/PyInstaller': Permission denied

----------------------------------------

Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-pratik/pyinstaller/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wrGEjP-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-pratik/pyinstaller

Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 139, in main
status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 271, in run
requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1185, in install
requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/lib/python2.7/dist-packages/pip/util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-pratik/pyinstaller/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wrGEjP-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-pratik/pyinstaller
我从pip.log上取了这个


如何解决此问题?

尝试使用
sudo
权限执行此操作

您在以下行中遇到权限被拒绝错误:

error: could not create '/usr/local/lib/python2.7/dist-packages/PyInstaller': Permission denied

尝试使用
sudo
权限执行此操作

您在以下行中遇到权限被拒绝错误:

error: could not create '/usr/local/lib/python2.7/dist-packages/PyInstaller': Permission denied
权限问题是指您没有创建目录的权限
sudo
授予您权限


权限问题是指您没有创建目录的权限
sudo
授予您权限。

不使用sudo进行安装:


pip install PyInstaller——不使用sudo进行安装的用户:

pip安装PyInstaller——用户

sudo pip install PyInstaller