ImportError: No module named '_markerlib'

问题:

C:\Users\Administrator>pip install  pyzmail
Collecting pyzmail
  Using cached pyzmail-1.0.3.tar.gz
Collecting distribute (from pyzmail)
  Using cached distribute-0.7.3.zip
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info\distribute.egg-info
    writing dependency_links to pip-egg-info\distribute.egg-info\dependency_links.txt
    writing pip-egg-info\distribute.egg-info\PKG-INFO
    writing requirements to pip-egg-info\distribute.egg-info\requires.txt
    writing top-level names to pip-egg-info\distribute.egg-info\top_level.txt
    Traceback (most recent call last):
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\pkg_resources.py", line 2680, i
n _dep_map
        return self.__dep_map
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\pkg_resources.py", line 2525, i
n __getattr__
        raise AttributeError(attr)
    AttributeError: _DistInfoDistribution__dep_map

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\setup.py", line 58, in <module>

        setuptools.setup(**setup_params)
      File "d:\Anaconda3\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "d:\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "d:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\setuptools\command\egg_info.py"
, line 177, in run
        writer = ep.load(installer=installer)
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\pkg_resources.py", line 2241, i
n load
        if require: self.require(env, installer)
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\pkg_resources.py", line 2254, i
n require
        working_set.resolve(self.dist.requires(self.extras),env,installer)))
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\pkg_resources.py", line 2471, i
n requires
        dm = self._dep_map
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\pkg_resources.py", line 2682, i
n _dep_map
        self.__dep_map = self._compute_dependencies()
      File "C:\Windows\TEMP\pip-build-0k84r_hv\distribute\pkg_resources.py", line 2699, i
n _compute_dependencies
        from _markerlib import compile as compile_marker
    ImportError: No module named '_markerlib'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Windows\TEMP\pip-build-
0k84r_hv\distribute\

解决方法:

C:\Users\Administrator>easy_install pyzmail
Searching for pyzmail
Reading https://pypi.python.org/simple/pyzmail/
Downloading https://pypi.python.org/packages/23/9a/c8709821fa15cec44f825fba884284b261a06d
8a0033a16f4c35470eb26a/pyzmail-1.0.3.tar.gz#md5=33cec6bf9c63e61f315da872a4908c06
Best match: pyzmail 1.0.3
Processing pyzmail-1.0.3.tar.gz
Writing C:\Windows\TEMP\easy_install-6x6nmauk\pyzmail-1.0.3\setup.cfg
Running pyzmail-1.0.3\setup.py -q bdist_egg --dist-dir C:\Windows\TEMP\easy_install-6x6nm
auk\pyzmail-1.0.3\egg-dist-tmp-pytdf5eh
VERSION 1.0.3
zip_safe flag not set; analyzing archive contents...
Copying pyzmail-1.0.3-py3.5.egg to d:\anaconda3\lib\site-packages
Adding pyzmail 1.0.3 to easy-install.pth file
Installing pyzsendmail script to d:\anaconda3\Scripts
Installing pyzinfomail script to d:\anaconda3\Scripts

Installed d:\anaconda3\lib\site-packages\pyzmail-1.0.3-py3.5.egg
Processing dependencies for pyzmail
Searching for distribute
Reading https://pypi.python.org/simple/distribute/
Downloading https://pypi.python.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916
ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a
Best match: distribute 0.7.3
Processing distribute-0.7.3.zip
Writing C:\Windows\TEMP\easy_install-q9k1invb\distribute-0.7.3\setup.cfg
Running distribute-0.7.3\setup.py -q bdist_egg --dist-dir C:\Windows\TEMP\easy_install-q9
k1invb\distribute-0.7.3\egg-dist-tmp-s6tss3hc
warning: install_lib: 'build\lib' does not exist -- no Python modules to install

Copying distribute-0.7.3-py3.5.egg to d:\anaconda3\lib\site-packages
Adding distribute 0.7.3 to easy-install.pth file

Installed d:\anaconda3\lib\site-packages\distribute-0.7.3-py3.5.egg
Finished processing dependencies for pyzmail
    原文作者:SmalltalkVoice
    原文地址: https://www.jianshu.com/p/2619b2289acc
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞