我是这样操作的,但还是报错了,请问是什么原因呢C:\Users\houlin>pip install chardet -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
ERROR: Exception:
Traceback (most recent call last):
File "c:\program files\python\lib\site-packages\pip\_internal\cli\base_command.py", line 186, in _main
status = self.run(options, args)
File "c:\program files\python\lib\site-packages\pip\_internal\commands\install.py", line 253, in run
options.use_user_site = decide_user_install(
File "c:\program files\python\lib\site-packages\pip\_internal\commands\install.py", line 604, in decide_user_install
if site_packages_writable(root=root_path, isolated=isolated_mode):
File "c:\program files\python\lib\site-packages\pip\_internal\commands\install.py", line 548, in site_packages_writable
return all(
File "c:\program files\python\lib\site-packages\pip\_internal\commands\install.py", line 549, in <genexpr>
test_writable_dir(d) for d in set(get_lib_location_guesses(**kwargs))
File "c:\program files\python\lib\site-packages\pip\_internal\utils\filesystem.py", line 140, in test_writable_dir
return _test_writable_dir_win(path)
File "c:\program files\python\lib\site-packages\pip\_internal\utils\filesystem.py", line 153, in _test_writable_dir_win
fd = os.open(file, os.O_RDWR | os.O_CREAT | os.O_EXCL)
PermissionError: [Errno 13] Permission denied: 'c:\\program files\\python\\Lib\\site-packages\\accesstest_deleteme_fishfingers_custard_7why45'
|