Cannot Uninstall Pyenv Python version, Get Error (70) uninstalling version 3.7.3: Permission denied

问题描述 投票:0回答:0
  • 我正在尝试卸载我在 Windows 10 上使用 pyenv 安装的 python 版本 3.7.3:

pyenv versions

* 3.7.3 (set by C:\Users\Esc\.pyenv\pyenv-win\version)
  • 打字
pyenv uninstall 3.7.3 

在具有管理员访问权限的 cmd 中出现此错误:

pyenv: Error (70) uninstalling version 3.7.3: Permission denied

  • 使用删除pyenv文件夹
rmdir /s /q  C:\Users\Esc\.pyenv

给出这个错误日志:

C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\libcrypto-1_1-x64.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\libssl-1_1-x64.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\pyexpat.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\select.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\sqlite3.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\unicodedata.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_asyncio.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_bz2.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_ctypes.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_decimal.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_hashlib.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_lzma.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_overlapped.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_queue.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_socket.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_sqlite3.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\DLLs\_ssl.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\debugpy\_VENDO~1\pydevd\_PYDEV~3\pydevd_cython.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\psutil\_psutil_windows.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\PYWIN3~1\pythoncom37.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\PYWIN3~1\pywintypes37.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\concrt140.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\libsodium-138090d4.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\libzmq-v142-mt-4_3_4-4e355e3e.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\msvcp140.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\vcruntime140_1.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\tornado\speedups.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\win32\win32api.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\win32\win32security.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\win32\_win32sysloader.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\context.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\error.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\message.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\socket.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\utils.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_device.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_poll.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_proxy_steerable.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_version.cp37-win_amd64.pyd - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\python3.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\python3.exe - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\python37.dll - Access is denied.
C:\Users\Esc\.pyenv\PYENV-~2\versions\3751C5~1.3\vcruntime140.dll - Access is denied.

这个pyenv报错Error (70) 在网上找不到。为什么即使我是管理员我也会得到它。

Permision denied 有一个解决方案here 但它对我不起作用。

windows cmd python-3.7 permission-denied pyenv
© www.soinside.com 2019 - 2024. All rights reserved.