Python I';我在用pip安装pyinstaller时遇到问题
我正在尝试在windows上使用pip安装pyinstaller,并不断遇到相同的错误 我知道从哪里开始找Python I';我在用pip安装pyinstaller时遇到问题,python,python-3.x,pyinstaller,Python,Python 3.x,Pyinstaller,我正在尝试在windows上使用pip安装pyinstaller,并不断遇到相同的错误 我知道从哪里开始找 C:\Users\t_sch\AppData\Local\Programs\Python\Python37-32\test>pip install pyinstaller Collecting pyinstaller Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed
C:\Users\t_sch\AppData\Local\Programs\Python\Python37-32\test>pip install pyinstaller
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies ... error
ERROR: Complete output from command 'c:\users\t_sch\appdata\local\programs\python\python37-32\python.exe' 'c:\users\t_sch\appdata\local\programs\python\python37-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\t_sch\AppData\Local\Temp\pip-build-env-a9cvo8h0\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel:
ERROR: Traceback (most recent call last):
File "c:\users\t_sch\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\t_sch\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\t_sch\appdata\local\programs\python\python37-32\lib\site-packages\pip\__main__.py", line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File "c:\users\t_sch\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\__init__.py", line 4, in <module>
import locale
File "c:\users\t_sch\appdata\local\programs\python\python37-32\lib\locale.py", line 16, in <module>
import re
File "c:\users\t_sch\appdata\local\programs\python\python37-32\lib\re.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------
ERROR: Command "'c:\users\t_sch\appdata\local\programs\python\python37-32\python.exe' 'c:\users\t_sch\appdata\local\programs\python\python37-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\t_sch\AppData\Local\Temp\pip-build-env-a9cvo8h0\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel" failed with error code 1 in None
C:\Users\t\u sch\AppData\Local\Programs\Python\Python37-32\test>pip安装pyinstaller
收集pyinstaller
使用缓存https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
正在安装生成依赖项。。。错误
错误:从命令“c:\users\t\u sch\appdata\local\programs\python\python37-32\python.exe”c:\users\t\u sch\appdata\local\programs\python\python37-32\lib\site packages\pip”install完成输出--忽略已安装--无用户--前缀“c:\users\t\u sch\appdata\local\Temp\pip-build-env-a9cvo8h0\overlay”---无警告脚本位置--无二进制文件:无:--仅二进制:无:-ihttps://pypi.org/simple --设置工具控制盘:
错误:回溯(最近一次呼叫上次):
文件“c:\users\t\u sch\appdata\local\programs\python\python37-32\lib\runpy.py”,第193行,位于主运行模块中
“\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
文件“c:\users\t\u sch\appdata\local\programs\python\python37-32\lib\runpy.py”,第85行,在运行代码中
exec(代码、运行\全局)
文件“c:\users\t\u sch\appdata\local\programs\python\python37-32\lib\site packages\pip\\uuuuuuu main\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
来自pip._内部导入主管道为_main#isort:skip#noqa
文件“c:\users\t\u sch\appdata\local\programs\python\python37-32\lib\site packages\pip\\u internal\\uuuuuu init\uuuuu.py”,第4行,在
导入区域设置
文件“c:\users\t\u sch\appdata\local\programs\python\python37-32\lib\locale.py”,第16行,在
进口稀土
文件“c:\users\t\u sch\appdata\local\programs\python\python37-32\lib\re.py”,第143行,在
类RegexFlag(enum.IntFlag):
AttributeError:模块“enum”没有属性“IntFlag”
----------------------------------------
错误:命令"“c:\users\t\u sch\appdata\local\programs\python\python37-32\python.exe”“c:\users\t\u sch\appdata\local\programs\python37-32\lib\site packages\pip”安装--忽略已安装--无用户--前缀“c:\users\t\u sch\appdata\local\Temp\pip-build-env-a9cvo8h0\overlay”---无警告脚本位置--无二进制:无:--仅二进制:无:-ihttps://pypi.org/simple --setuptools wheel“失败,错误代码为1,无
我知道您使用的是3.7,enum34与标准库不兼容(从3.5或3.6开始)。请尝试:
pip uninstall enum34
我知道您使用的是3.7,enum34与标准库不兼容(从3.5或3.6开始)。请尝试:
pip uninstall enum34