Python 2.7 和 pip install 解决了_markerlib和安装其他软件包失败的问题



当前尝试安装一些Web框架,但失败并出现以下错误。当我尝试安装其他软件包时,它也会显示相同的错误。我不知道它源于哪里。任何想法都会有很大帮助。

PS D:Python_Programming_Zed_ShowExersize_46Python27_ProjectsExersize_48Exersize_48> python -m pip install lpthw.web
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/late
st/development/release-process/#python-2-support
Collecting lpthw.web
Using cached https://files.pythonhosted.org/packages/52/0d/a200087bb551895143fedfb5f7df416ccb7ecb46428e04dd011a7ea19689/lpthw.web-1.1.tar.gz
ERROR: Command errored out with exit status 1:
command: 'D:Python27python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'d:\users\arhitect\appdata\local\temp\pip-install-gj9eke\lpthw.web\setup.py'"'"'; __file__='"'"'d:\users\arhitect\appdata\local\temp\pip-install-gj9eke\lpthw.web\setup.py'"'"';f=getattr(tok
enize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: d:usersarhitectappdatalocaltemppip-install-gj9ekelpthw.web
Complete output (28 lines):
running egg_info
creating pip-egg-infolpthw.web.egg-info
writing pip-egg-infolpthw.web.egg-infoPKG-INFO
writing top-level names to pip-egg-infolpthw.web.egg-infotop_level.txt
writing dependency_links to pip-egg-infolpthw.web.egg-infodependency_links.txt
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "d:usersarhitectappdatalocaltemppip-install-gj9ekelpthw.websetup.py", line 17, in <module>
platforms=["any"],
File "D:Python27libdistutilscore.py", line 151, in setup
dist.run_commands()
File "D:Python27libdistutilsdist.py", line 953, in run_commands
self.run_command(cmd)
File "D:Python27libdistutilsdist.py", line 972, in run_command
cmd_obj.run()
File "d:usersarhitectdownloadsdistribute-0.7.3distribute-0.7.3setuptoolscommandegg_info.py", line 177, in run
writer = ep.load(installer=installer)
File "d:usersarhitectdownloadsdistribute-0.7.3distribute-0.7.3pkg_resources.py", line 2241, in load
if require: self.require(env, installer)
File "d:usersarhitectdownloadsdistribute-0.7.3distribute-0.7.3pkg_resources.py", line 2254, in require
working_set.resolve(self.dist.requires(self.extras),env,installer)))
File "d:usersarhitectdownloadsdistribute-0.7.3distribute-0.7.3pkg_resources.py", line 2471, in requires
dm = self._dep_map
File "d:usersarhitectdownloadsdistribute-0.7.3distribute-0.7.3pkg_resources.py", line 2682, in _dep_map
self.__dep_map = self._compute_dependencies()
File "d:usersarhitectdownloadsdistribute-0.7.3distribute-0.7.3pkg_resources.py", line 2699, in _compute_dependencies
from _markerlib import compile as compile_marker
ImportError: No module named _markerlib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
PS D:Python_Programming_Zed_ShowExersize_46Python27_ProjectsExersize_48Exersize_48>

有问题的导入来自distribute-0.7.3这是过时的软件包,不应使用。删除目录d:usersarhitectdownloadsdistribute-0.7.3