InsecurePlatformWarning Exception: Traceback (most recent call last): File "/home/rayra/devstack/-6ren">
gpt4 book ai didi

ubuntu - 在运行 stack.sh 时得到 ""OSError : [Errno 13] Permission denied: '/home/'/home/rayra/. cache/pip/wheels... 并退出

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:02 26 4
gpt4 key购买 nike

  >InsecurePlatformWarning
Exception:
Traceback (most recent call last):
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/commands/install.py", line 293, in run
wb.build(autobuilding=True)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/wheel.py", line 705, in build
self.requirement_set.prepare_files(self.finder)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/req/req_set.py", line 334, in prepare_files
functools.partial(self._prepare_file, finder))
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/req/req_set.py", line 321, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/req/req_set.py", line 461, in _prepare_file
req_to_install.populate_link(finder, self.upgrade)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/req/req_install.py", line 249, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/req/req_install.py", line 261, in link
self._link = self._wheel_cache.cached_wheel(link, self.name)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/wheel.py", line 63, in cached_wheel
self._cache_dir, link, self._format_control, package_name)
File "/home/rayra/devstack/devstack/tmp-venv-5XVD/local/lib/python2.7/site-packages/pip/wheel.py", line 124, in cached_wheel
wheel_names = os.listdir(root)
OSError: [Errno 13] Permission denied: '/home/rayra/.cache/pip/wheels/99/e7/9a/68b1c8ca6f6f92b5feebd4d9434f50712b84f6a66d1285ea21'

+ exit_trap
+ local r=2
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 2 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z /opt/stack/logs ]]
+ /home/rayra/devstack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2015-08-12-071442.txt for details
+ exit 2

最佳答案

我今天遇到了类似的问题,将.cache 目录的所有者更改为我的用户后问题得到解决。

只需运行以下命令:

$sudo chown rayra /home/rayra/.cache

关于ubuntu - 在运行 stack.sh 时得到 ""OSError : [Errno 13] Permission denied: '/home/'/home/rayra/. cache/pip/wheels... 并退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31960705/

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