繁体   English   中英

Python 2.7 和 pip 安装 _markerlib 的实际问题和安装其他包失败

[英]Python 2.7 and pip install realted issues with _markerlib and installing other packages failures

当前尝试安装一些 web 框架,但失败并出现以下错误。 当我尝试安装其他软件包时,它也会显示相同的错误。 我无法弄清楚它来自哪里。 任何想法都会有很大帮助。

 PS D:\Python_Programming_Zed_Show\Exersize_46\Python27_Projects\Exersize_48\Exersize_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:\Python27\python.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('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
             cwd: d:\users\arhitect\appdata\local\temp\pip-install-gj9eke\lpthw.web\
        Complete output (28 lines):
        running egg_info
        creating pip-egg-info\lpthw.web.egg-info
        writing pip-egg-info\lpthw.web.egg-info\PKG-INFO
        writing top-level names to pip-egg-info\lpthw.web.egg-info\top_level.txt
        writing dependency_links to pip-egg-info\lpthw.web.egg-info\dependency_links.txt
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "d:\users\arhitect\appdata\local\temp\pip-install-gj9eke\lpthw.web\setup.py", line 17, in <module>
            platforms=["any"],
          File "D:\Python27\lib\distutils\core.py", line 151, in setup
            dist.run_commands()
          File "D:\Python27\lib\distutils\dist.py", line 953, in run_commands
            self.run_command(cmd)
          File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
            cmd_obj.run()
          File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\setuptools\command\egg_info.py", line 177, in run
            writer = ep.load(installer=installer)
          File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2241, in load
            if require: self.require(env, installer)
          File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2254, in require
            working_set.resolve(self.dist.requires(self.extras),env,installer)))
          File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2471, in requires
            dm = self._dep_map
          File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2682, in _dep_map
            self.__dep_map = self._compute_dependencies()
          File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_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_Show\Exersize_46\Python27_Projects\Exersize_48\Exersize_48>

有问题的导入来自于过时的 package 且不应使用的distribute-0.7.3 删除目录d:\users\arhitect\downloads\distribute-0.7.3

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM