gpt4 book ai didi

python - 权限错误 : [WinError 5] Access is denied: 'C:\\Program Files\\Anaconda3\\pkgs\\vs2015_runtime-14. 0.25123-0.tmp

转载 作者:太空狗 更新时间:2023-10-30 00:26:01 26 4
gpt4 key购买 nike

这里是 Conda 新手!我该如何解决这个问题?

C:\Users\mona>conda create --name universe-starter-agent python=3.5
Fetching package metadata .........
Solving package specifications: ..........

Package plan for installation in environment C:\Users\mona\.conda\envs\universe-starter-agent:

The following packages will be downloaded:

package | build
---------------------------|-----------------
pip-9.0.1 | py35_1 1.7 MB

The following NEW packages will be INSTALLED:

pip: 9.0.1-py35_1
python: 3.5.2-0 (copy)
setuptools: 27.2.0-py35_1 (copy)
vs2015_runtime: 14.0.25123-0 (copy)
wheel: 0.29.0-py35_0 (copy)

Proceed ([y]/n)? y

Fetching packages ...
pip-9.0.1-py35 100% |###############################| Time: 0:00:00 2.94 MB/s
Extracting packages ...
WARNING conda.lock:touch(53): Failed to create lock, do not run conda in parallel processes [errno 13]
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:

https://github.com/conda/conda/issues



Current conda install:

platform : win-64
conda version : 4.2.9
conda is private : False
conda-env version : 4.2.9
conda-build version : 2.0.2
python version : 3.5.2.final.0
requests version : 2.11.1
root environment : C:\Program Files\Anaconda3 (read only)
default environment : C:\Program Files\Anaconda3
envs directories : C:\Users\mona\.conda\envs
C:\Program Files\Anaconda3\envs
package cache : C:\Users\mona\.conda\envs\.pkgs
C:\Program Files\Anaconda3\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/win-64/
https://repo.continuum.io/pkgs/pro/noarch/
https://repo.continuum.io/pkgs/msys2/win-64/
https://repo.continuum.io/pkgs/msys2/noarch/
config file : None
offline mode : False



`$ C:\Program Files\Anaconda3\Scripts\conda-script.py create --name universe-starter-agent python=3.5`




Traceback (most recent call last):
File "C:\Program Files\Anaconda3\lib\site-packages\conda\exceptions.py", line 473, in conda_exception_handler
return_value = func(*args, **kwargs)
File "C:\Program Files\Anaconda3\lib\site-packages\conda\cli\main.py", line 144, in _main
exit_code = args.func(args, p)
File "C:\Program Files\Anaconda3\lib\site-packages\conda\cli\main_create.py", line 68, in execute
install(args, parser, 'create')
File "C:\Program Files\Anaconda3\lib\site-packages\conda\cli\install.py", line 405, in install
execute_actions(actions, index, verbose=not context.quiet)
File "C:\Program Files\Anaconda3\lib\site-packages\conda\plan.py", line 643, in execute_actions
inst.execute_instructions(plan, index, verbose)
File "C:\Program Files\Anaconda3\lib\site-packages\conda\instructions.py", line 134, in execute_instructions
cmd(state, arg)
File "C:\Program Files\Anaconda3\lib\site-packages\conda\instructions.py", line 58, in EXTRACT_CMD
extract(arg)
File "C:\Program Files\Anaconda3\lib\site-packages\conda\install.py", line 801, in extract
t.extractall(path=temp_path)
File "C:\Program Files\Anaconda3\lib\tarfile.py", line 1996, in extractall
numeric_owner=numeric_owner)
File "C:\Program Files\Anaconda3\lib\tarfile.py", line 2038, in extract
numeric_owner=numeric_owner)
File "C:\Program Files\Anaconda3\lib\tarfile.py", line 2100, in _extract_member
os.makedirs(upperdirs)
File "C:\Program Files\Anaconda3\lib\os.py", line 231, in makedirs
makedirs(head, mode, exist_ok)
File "C:\Program Files\Anaconda3\lib\os.py", line 241, in makedirs
mkdir(name, mode)

我收到这个错误

PermissionError: [WinError 5] Access is denied: 'C:\Program Files\Anaconda3\pkgs\vs2015_runtime-14.0.25123-0.tmp'

最佳答案

方法一:

尝试以管理员身份打开您的终端。

方法二:

如果方法 1 不起作用,请在安装命令的末尾添加“--user”。

例如:pip install --ignore-installed --upgrade tensorflow --user

方法三:

如果这也不起作用,则可能未设置 PATH 变量。在这种情况下,应该将路径打印为警告。通过以下步骤添加这些路径:

3.1。右击我的电脑->属性

3.2。高级系统设置

3.3。在“高级”选项卡下,选择环境变量。

3.4。单击新建,将变量名称命名为“PATH”,并将值命名为警告中给出的目录。

希望这有帮助:)

关于python - 权限错误 : [WinError 5] Access is denied: 'C:\\Program Files\\Anaconda3\\pkgs\\vs2015_runtime-14. 0.25123-0.tmp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41605539/

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