Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 命令出错,退出状态为1,访问被拒绝_Python_Python 3.x_Python 3.6 - Fatal编程技术网

Python 命令出错,退出状态为1,访问被拒绝

Python 命令出错,退出状态为1,访问被拒绝,python,python-3.x,python-3.6,Python,Python 3.x,Python 3.6,最近我安装了anaconda。现在,我卸载了Anaconda并重新安装了python 3.6。由于以下错误,我无法安装某些软件包 Collecting pyinstaller Using cached pyinstaller-4.0.tar.gz (3.5 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: 'c:\users\de

最近我安装了anaconda。现在,我卸载了Anaconda并重新安装了python 3.6。由于以下错误,我无法安装某些软件包

Collecting pyinstaller
  Using cached pyinstaller-4.0.tar.gz (3.5 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\dell\appdata\local\programs\python\python36\python.exe' 'c
:\users\dell\appdata\local\programs\python\python36\lib\site-packages\pip' insta
ll --ignore-installed --no-user --prefix 'C:\Users\DELL\AppData\Local\Temp\pip-b
uild-env-nt65tuv0\overlay' --no-warn-script-location --no-binary :none: --only-b
inary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
       cwd: None
  Complete output (14 lines):
  Traceback (most recent call last):
    File "c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py", li
ne 193, in _run_module_as_main
      "__main__", mod_spec)
    File "c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py", li
ne 85, in _run_code
      exec(code, run_globals)
    File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages
\pip\__main__.py", line 23, in <module>
      from pip._internal.cli.main import main as _main  # isort:skip # noqa
    File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages
\pip\_internal\cli\main.py", line 5, in <module>
      import locale
    File "c:\users\dell\appdata\local\programs\python\python36\lib\locale.py", l
ine 16, in <module>
      import re
    File "c:\users\dell\appdata\local\programs\python\python36\lib\re.py", line
142, in <module>
      class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\dell\appdata\local\prog
rams\python\python36\python.exe' 'c:\users\dell\appdata\local\programs\python\py
thon36\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\
Users\DELL\AppData\Local\Temp\pip-build-env-nt65tuv0\overlay' --no-warn-script-l
ocation --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 's
etuptools>=40.8.0' wheel Check the logs for full command output.
Traceback (most recent call last):
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 468, in __exit__
    if cb(*exc_details):
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 396, in _exit_wrapper
    return cm_exit(cm, *exc_details)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\temp_dir.py", line 175, in __exit__
    self.cleanup()
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\temp_dir.py", line 199, in cleanup
    rmtree(ensure_text(self._path))
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 212, in call
    raise attempt.get()
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\six.py", line 703, in reraise
    raise value
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\misc.py", line 139, in rmtree
    onerror=rmtree_errorhandler)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 488, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 378, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 378, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 378, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 383, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 381, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\DELL\\AppData\\Local
\\Temp\\pip-install-k22kzs5t\\pyinstaller\\PyInstaller\\bootloader\\Windows-32bi
t\\run.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py", line
 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py", line
 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\Scripts\pip.exe\__m
ain__.py", line 7, in <module>
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\cli\main.py", line 75, in main
    return command.main(cmd_args)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\cli\base_command.py", line 121, in main
    return self._main(args)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\contextlib.py",
 line 89, in __exit__
    next(self.gen)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\cli\command_context.py", line 28, in main_context
    yield
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 479, in __exit__
    _reraise_with_existing_context(exc_details)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 340, in _reraise_with_existing_context
    raise exc_details[1]
  File "c:\users\dell\appdata\local\programs\python\python36\lib\contextlib.py",
 line 100, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\temp_dir.py", line 85, in tempdir_registry
    yield _tempdir_registry
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 468, in __exit__
    if cb(*exc_details):
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 396, in _exit_wrapper
    return cm_exit(cm, *exc_details)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\contextlib.py",
 line 89, in __exit__
    next(self.gen)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\temp_dir.py", line 46, in global_tempdir_manager
    _tempdir_manager = old_tempdir_manager
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 479, in __exit__
    _reraise_with_existing_context(exc_details)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 340, in _reraise_with_existing_context
    raise exc_details[1]
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 468, in __exit__
    if cb(*exc_details):
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\contextlib2.py", line 396, in _exit_wrapper
    return cm_exit(cm, *exc_details)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\temp_dir.py", line 175, in __exit__
    self.cleanup()
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\temp_dir.py", line 199, in cleanup
    rmtree(ensure_text(self._path))
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 212, in call
    raise attempt.get()
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\six.py", line 703, in reraise
    raise value
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_vendor\retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\p
ip\_internal\utils\misc.py", line 139, in rmtree
    onerror=rmtree_errorhandler)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 488, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 378, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 378, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 378, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 383, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py", lin
e 381, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\DELL\\AppData\\Local
\\Temp\\pip-install-k22kzs5t\\pyinstaller\\PyInstaller\\bootloader\\Windows-32bi
t\\run.exe'
正在收集pyinstaller
使用缓存的pyinstaller-4.0.tar.gz(3.5 MB)
正在安装生成依赖项。。。错误
错误:命令出错,退出状态为1:
命令:“c:\users\dell\appdata\local\programs\python\python36\python.exe”c
:\users\dell\appdata\local\programs\python\36\lib\site packages\pip'insta
ll--忽略已安装--无用户--前缀'C:\Users\DELL\AppData\Local\Temp\pip-b
uild-env-nt65tuv0\overlay'--无警告脚本位置--无二进制文件:无:---仅-b
伊纳里:没有https://pypi.org/simple --“设置工具>=40.8.0”控制盘
cwd:没有
完整输出(14行):
回溯(最近一次呼叫最后一次):
文件“c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py”,li
ne 193,运行模块作为主模块
“\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
文件“c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py”,li
ne 85,输入运行代码
exec(代码、运行\全局)
文件“c:\users\dell\appdata\local\programs\python\python36\lib\site软件包
\pip \ \ uuuu main \ \ uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
从pip._internal.cli.main导入main作为_main#isort:skip#noqa
文件“c:\users\dell\appdata\local\programs\python\python36\lib\site软件包
\pip\\u internal\cli\main.py”,第5行,在
导入区域设置
文件“c:\users\dell\appdata\local\programs\python\python36\lib\locale.py”,l
第16行
进口稀土
文件“c:\users\dell\appdata\local\programs\python\python36\lib\re.py”,第行
142,在
类RegexFlag(enum.IntFlag):
AttributeError:模块“enum”没有属性“IntFlag”
----------------------------------------
错误:退出状态为1的命令出错:“c:\users\dell\appdata\local\prog”
rams\python\python36\python.exe''c:\users\dell\appdata\local\programs\python\py
thon36\lib\site packages\pip'安装--忽略已安装--无用户--前缀'C:\
Users\DELL\AppData\Local\Temp\pip-build-env-nt65tuv0\overlay'--no-warn-script-l
位置--无二进制文件:无:--仅二进制文件:无:-ihttps://pypi.org/simple --的
etuptools>=40.8.0'控制盘检查日志以获得完整的命令输出。
回溯(最近一次呼叫最后一次):
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u vendor\contextlib2.py”,第468行,在出口处__
如果cb(*exc_详细信息):
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u vendor\contextlib2.py”,第396行,在出口包装中
返回cm_退出(cm,*exc_详细信息)
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u internal\utils\temp\u dir.py”,第175行,在出口处__
self.cleanup()
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u internal\utils\temp\u dir.py”,第199行,在清理中
rmtree(确保文本(自身路径))
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u vendor\retrying.py”,第49行,包装为
返回重试(*dargs,**dkw)。调用(f,*args,**kw)
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip \\u vendor\retrying.py“,第212行,呼叫中
提升尝试。获取()
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u vendor\retrying.py”,get中第247行
六.重新释放(自值[0]、自值[1]、自值[2])
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u vendor\six.py”,第703行,重新登录
增值
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip \\u vendor\retrying.py“,第200行,呼叫中
尝试=尝试(fn(*args,**kwargs),尝试次数,False)
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip \\u internal\utils\misc.py“,rmtree中的第139行
onerror=rmtree\u errorhandler)
文件“c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py”,lin
E488,在树上
返回树不安全(路径、错误)
文件“c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py”,lin
e 378,不安全
_rmtree_不安全(全名,onerror)
文件“c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py”,lin
e 378,不安全
_rmtree_不安全(全名,onerror)
文件“c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py”,lin
e 378,不安全
_rmtree_不安全(全名,onerror)
文件“c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py”,lin
e 383,不安全
onerror(os.unlink,fullname,sys.exc_info())
文件“c:\users\dell\appdata\local\programs\python\python36\lib\shutil.py”,lin
e 381,不安全
操作系统取消链接(全名)
PermissionError:[WinError 5]访问被拒绝:“C:\\Users\\DELL\\AppData\\Local”
\\Temp\\pip-install-k2kzs5t\\pyinstaller\\pyinstaller\\bootloader\\Windows-32bi
t\\run.exe'
在处理上述异常期间,发生了另一个异常:
回溯(最近一次呼叫最后一次):
文件“c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py”,第行
193,运行模块作为主模块
“\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
文件“c:\users\dell\appdata\local\programs\python\python36\lib\runpy.py”,第行
85,输入运行代码
exec(代码、运行\全局)
文件“C:\Users\DELL\AppData\Local\Programs\Python\36\Scripts\pip.exe\ \uu\m
ain____.py”,第7行,在
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip \\u internal\cli\main.py“,第75行,在main中
return command.main(cmd_args)
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
ip\\u internal\cli\base\u command.py”,主菜单第121行
返回自。_主(args)
文件“c:\users\dell\appdata\local\programs\python\python36\lib\contextlib.py”,
第89行,进站出口__
下一个(self.gen)
文件“c:\users\dell\appdata\local\programs\python36\lib\site packages\p
我