Tales Pádua Tales Pádua - 1 year ago 285
Python Question

Error: "No module named _markerlib" when installing some packages on virtualenv

I can't install some packages on virtualenv because of this error.

I tried to install:

pip install pyups==0.4.4


pip install --upgrade distribute

and they give me the error:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-tLx1oC/distribute/setup.py", line 58, in <module>
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
File "setuptools/command/egg_info.py", line 177, in run
writer = ep.load(installer=installer)
File "pkg_resources.py", line 2241, in load
if require: self.require(env, installer)
File "pkg_resources.py", line 2254, in require
File "pkg_resources.py", line 2471, in requires
dm = self._dep_map
File "pkg_resources.py", line 2682, in _dep_map
self.__dep_map = self._compute_dependencies()
File "pkg_resources.py", line 2699, in _compute_dependencies
from _markerlib import compile as compile_marker
ImportError: No module named _markerlib

I tried also to install markerlib with

pip install markerlib

But the error continues.

Answer Source

Although the virtualenv docs says --distribute and --setuptools options are now legacy, when I created the environment with :

virtualenv myenv --distribute

the error was gone.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download