【问题标题】:Can't pip install egenix-mx-base无法 pip 安装 egenix-mx-base
【发布时间】:2020-09-13 13:38:46
【问题描述】:

我正在尝试使用 pyinstaller 创建一个 exe 文件

  • python 3.8
  • Windows 7
  • 点 20.1.1

78935 WARNING: Hidden import "mx.DateTime" not found!

我试过了:

pip install egenix-mx-base

但是我得到了这个错误:

  Using cached egenix-mx-base-3.2.9.zip (74 kB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\user\appdata\local\programs\python\python38\python.exe'
-c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppDat
a\\Local\\Temp\\pip-install-5lbz35_k\\egenix-mx-base\\setup.py'"'"'; __file__='"
'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-5lbz35_k\\egenix-mx-base\\
setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().
replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'
"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg
-info-l5hzmpcw'
         cwd: C:\Users\user\AppData\Local\Temp\pip-install-5lbz35_k\egenix-mx-ba
se\
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip-install-5lbz35_k\egenix-mx-base
\setup.py", line 9, in <module>
        import mxSetup, os
      File "C:\Users\user\AppData\Local\Temp\pip-install-5lbz35_k\egenix-mx-base
\mxSetup.py", line 229
        print 'running mxSetup.py with setuptools patched distutils'
              ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print('run
ning mxSetup.py with setuptools patched distutils')?
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.

我尝试了这个问题的所有解决方案,但没有任何效果: https://github.com/pypa/pip/issues/8

【问题讨论】:

    标签: python-3.x windows pip pyinstaller


    【解决方案1】:

    egenix-mx-base 仅适用于 Python2。对于日期/时间操作,还有足够多的其他模块,包括来自 stdlib 的模块:datetimecalendartime

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-01
      • 2020-10-12
      • 1970-01-01
      • 2021-09-21
      • 2016-11-10
      • 2014-06-25
      • 2018-01-17
      • 2021-02-07
      相关资源
      最近更新 更多