gpt4 book ai didi

python - Ubuntu 安装 Boto 错误

转载 作者:行者123 更新时间:2023-12-04 18:38:04 30 4
gpt4 key购买 nike

我已经安装了 Python 2.7.9,并且正在尝试使用 pip install boto 安装 Boto,但收到此错误:

    Collecting boto
Using cached boto-2.36.0-py2.py3-none-any.whl
Installing collected packages: boto

Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 232, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 347, in run
root=options.root_path,
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 549, in install
**kwargs
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 754, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 963, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 234, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 205, in clobber
os.makedirs(destdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/boto'

我是第一次使用 Linux/Ubuntu 用户。

最佳答案

尝试运行如下命令:

    sudo pip install boto

关于python - Ubuntu 安装 Boto 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28909450/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com