切换导航
{{systemName}}
{{ info.Title }}
{{info.Title}}
{{ menu.Title }}
{{menu.Title}}
登录
|
退出
搜索
PermissionError: [WinError 5] 拒绝访问。: 'd:\\python\\python36\\scripts\\pip3.exe'
作者:ych
#### 执行升级 ``` python -m ensurepip python -m pip install --upgrade pip ``` 出现 ``` File "d:\python\python36\lib\shutil.py", line 544, in move os.rename(src, real_dst) OSError: [WinError 17] 系统无法将文件移到不同的磁盘驱动器。: 'd:\\python\\python36\\scripts\\pip3.exe' -> 'C:\\Users\\tg\\AppData\\Local\\Temp\\pip-a45ezq_q-uninstall\\python\\python36\\scripts\\pip3.exe' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main File "d:\python\python36\lib\site-packages\pip\commands\install.py", line 342, in run File "d:\python\python36\lib\site-packages\pip\req\req_set.py", line 778, in install File "d:\python\python36\lib\site-packages\pip\req\req_install.py", line 754, in uninstall File "d:\python\python36\lib\site-packages\pip\req\req_uninstall.py", line 115, in remove File "d:\python\python36\lib\site-packages\pip\utils\__init__.py", line 267, in renames File "d:\python\python36\lib\shutil.py", line 559, in move os.unlink(src) PermissionError: [WinError 5] 拒绝访问。: 'd:\\python\\python36\\scripts\\pip3.exe' ``` #### 处理方案 到`d:/python/python36`下面,去将用户权限设置到最大就可以了(右键->属性->安全->Users->编辑成最高权限)。
评论区
先去登录
版权所有:机遇屋在线 Copyright © 2021-2025 jiyuwu Co., Ltd.
鲁ICP备16042261号-1