gpt4 book ai didi

python - 安装 Steam 库时出现 PermissionError 13

转载 作者:太空宇宙 更新时间:2023-11-04 00:32:09 32 4
gpt4 key购买 nike

我正在尝试使用 VMplayer 和 Python 3.5 在 Ubuntu 16.04 上安装 steem 库运行 pip3 install steem 时出现以下错误:

       Exception:
Traceback (most recent call last):
File "/home/orion/.local/lib/python3.5/site-
packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/orion/.local/lib/python3.5/site-
packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/orion/.local/lib/python3.5/site-packages/pip/req/req_set.py",
line 784, in install
**kwargs
File "/home/orion/.local/lib/python3.5/site-
packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/orion/.local/lib/python3.5/site-
packages/pip/req/req_install.py",
line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/orion/.local/lib/python3.5/site-packages/pip/wheel.py", line
345,
in move_wheel_files
clobber(source, lib_dir, True)
File "/home/orion/.local/lib/python3.5/site-packages/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/usr/lib/python3.5/shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-
packages/appdirs.py'

最佳答案

以 sudo 身份运行 pip3 install 命令以避免遇到任何权限问题:sudo pip3 install [PACKAGE]

关于python - 安装 Steam 库时出现 PermissionError 13,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45406619/

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