我正在尝试在使用Python 3.3.6
的Windows XP计算机上安装pygmentize模块(2012年9月29日)
当我执行pip install pygmentize
时,它返回windows XP Fatal error in launcher: Unable to create process
,所以我应用了这个解决方案,下面是如何进行的:
$ python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/8a/d7/f505e91e2cdea53cfcf51f4ac478a8cd64fb0629cedde20d9a6a9b/pip-21.2.2-py3-none-any.whl (1.6MB)
100% |################################| 1.6MB 87kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-21.2.2
当我尝试再次安装时:
$ pip install pygmentize
Traceback (most recent call last):
File "c:programspython-3.3librunpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:programspython-3.3librunpy.py", line 73, in _run_code
exec(code, run_globals)
File "C:Programspython-3.3Scriptspip.exe__main__.py", line 5, in <module>
File "c:programspython-3.3libsite-packagespip__init__.py", line 1, in <module>
from typing import List, Optional
ImportError: No module named 'typing'
假设pip-21.2.2
与pyrhon-3.3.6
完全兼容,我认为这是由于我的python-3.3.6
与当前版本的pygmentize
不兼容造成的,如果是这种情况,我如何检查pygmentize
的哪个版本与python-3.3.6
兼容,我如何在python-3.3.6
中安装兼容的版本?
如果你使用pycharm,你可以去"python-packages"搜索pygmentize,然后安装它