我做了一个全新的Windows 10安装,安装了python,cygwin和一个名为ConEmu的改进控制台.安装python 3.4.3后我执行:
pip install -U pip
Run Code Online (Sandbox Code Playgroud)
并得到了这个错误.
File "C:\Anwendungsentwicklung\Python34\lib\site-packages\pip\utils\__init__.py", line 70, in rmtree_errorhandler
os.makedirs(path)
PermissionError: [WinError 5] Zugriff verweigert: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-dxm8d3xg-uninstall\\anwendungsentwicklung\\python34\\scripts\\pip.exe'
Run Code Online (Sandbox Code Playgroud)
我使用预定义的管理员帐户登录,临时目录以及Python的安装目录(C:\ Anwendungsentwicklung\Python34)具有完全访问权限.
请通过设置不同的权限测试所有变体,但Windows不会让我.我甚至在安全选项卡中添加了"Everyone",但这并没有帮助,尽管我记得它正在使用Windows 7进行这种"技巧".它一定是Windows 10的问题.有人可以帮忙吗?
这是完全追溯
Exception:
Traceback (most recent call last):
File "c:\anwendungsentwicklung\python34\lib\shutil.py", line 372, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Zugriff verweigert: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-k7g0hd6t- uninstall\\anwendungsentwicklung\\python34\\scripts\\pip.exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\anwendungsentwicklung\python34\lib\site-packages\pip\basecommand.py", line 232, in main
logger.critical('Operation cancelled by user')
File "c:\anwendungsentwicklung\python34\lib\site-packages\pip\commands\install.py", line 347, in run
ensure_dir(options.target_dir)
File "c:\anwendungsentwicklung\python34\lib\site-packages\pip\req\req_set.py", …Run Code Online (Sandbox Code Playgroud)