Windows Server 2003 安装 python

Windows Server 2003 是32位的系统,最高支持的python 版本是 3.4

下载 python-3.4

https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi

 

D:\Python34\Scripts>pip install pyinstaller

 

 

D:\Python34\Scripts>pyinstaller  -F -w  YJSY-ftp_210.py
Error processing line 1 of d:\python34\lib\site-packages\distutils-precedence.pt
h:

  Traceback (most recent call last):
    File "d:\python34\lib\site.py", line 167, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "d:\python34\lib\site-packages\_distutils_hack\__init__.py", line 194
      f'spec_for_{name}',
                       ^
  SyntaxError: invalid syntax

Remainder of file ignored
Traceback (most recent call last):
  File "d:\python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Python34\Scripts\pyinstaller.exe\__main__.py", line 5, in <module>
  File "d:\python34\lib\site-packages\PyInstaller\__init__.py", line 17, in <mod
ule>
    from PyInstaller import compat
  File "d:\python34\lib\site-packages\PyInstaller\compat.py", line 34
    is_64bits: bool = sys.maxsize > 2**32
             ^
SyntaxError: invalid syntax

 

posted @ 2023-03-06 22:48  emanlee  阅读(436)  评论(0编辑  收藏  举报