英文:
Cannot Uninstall Pyenv Python version, Get Error (70) uninstalling version 3.7.3: Permission denied
问题
- 我正在尝试卸载在Windows 10上使用pyenv安装的Python版本3.7.3:
pyenv versions
* 3.7.3(由C:\Users\Esc\.pyenv\pyenv-win\version设置)
- 在具有管理员权限的命令提示符中键入以下命令:
pyenv uninstall 3.7.3
出现以下错误:
pyenv: Error (70) uninstalling version 3.7.3: Permission denied
- 使用以下命令删除pyenv文件夹:
rmdir /s /q C:\Users\Esc\.pyenv
出现以下错误日志:
(列出的所有文件) - Access is denied.
这个pyenv错误(Error 70)在网上找不到。为什么我即使是管理员也会收到这个错误?
"Permission denied"有一个解决方案这里,但对我不起作用。
英文:
- I am trying to uninstall this python version 3.7.3 that i installed using pyenv on Windows 10 :
pyenv versions
* 3.7.3 (set by C:\Users\Esc\.pyenv\pyenv-win\version)
- Typing
pyenv uninstall 3.7.3
in cmd with Admin access gives this error:
pyenv: Error (70) uninstalling version 3.7.3: Permission denied
- Deleting the pyenv folder using
rmdir /s /q C:\Users\Esc\.pyenv
gives this error log:
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\libcrypto-1_1-x64.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\libssl-1_1-x64.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\pyexpat.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\select.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\sqlite3.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\unicodedata.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_asyncio.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_bz2.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_ctypes.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_decimal.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_hashlib.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_lzma.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_overlapped.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_queue.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_socket.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_sqlite3.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\DLLs\_ssl.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\debugpy\_VENDO~1\pydevd\_PYDEV~3\pydevd_cython.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\psutil\_psutil_windows.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\PYWIN3~1\pythoncom37.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\PYWIN3~1\pywintypes37.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\concrt140.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\libsodium-138090d4.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\libzmq-v142-mt-4_3_4-4e355e3e.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\msvcp140.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\PYZMQ~1.LIB\vcruntime140_1.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\tornado\speedups.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\win32\win32api.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\win32\win32security.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\win32\_win32sysloader.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\context.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\error.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\message.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\socket.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\utils.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_device.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_poll.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_proxy_steerable.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\Lib\SITE-P~1\zmq\backend\cython\_version.cp37-win_amd64.pyd - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\python3.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\python3.exe - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\python37.dll - Access is denied.
C:\Users\U\.pyenv\PYENV-~2\versions51C5~1.3\vcruntime140.dll - Access is denied.
This pyenv error Error (70) is not found anywhere on the web. Why am i getting it even when i'm the admin.
Permision denied has a solution here but it doesn't work for me.
答案1
得分: 1
尝试以下修复步骤:
- 重启Windows资源管理器
- 尝试磁盘清理、禁用缩略图、禁用预览窗格
- 转到任务管理器 > 结束所有Python进程
- 清空回收站
如果有效,请告诉我。
英文:
Try these fixes
- Restart Windows Explorer
- Try Disk Cleanup, Disabling Thumbnails, Disabling Preview Pane
- Go to Task Manager > Kill All Python Processess
- Empty your Recycle Bin
Let me know if this works.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论