Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

and

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>
        setuptools.setup(**setup_params)
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      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
        working_set.resolve(self.dist.requires(self.extras),env,installer)))
      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.

like image 911
Tales Pádua Avatar asked Mar 03 '16 18:03

Tales Pádua


3 Answers

$ easy_install distribute

or build from source works for me

like image 90
yomin Avatar answered Nov 14 '22 21:11

yomin


I try the following command

easy_install distribute
pip install --upgrade distribute

which works.

like image 32
mathsyouth Avatar answered Nov 14 '22 22:11

mathsyouth


install setuptools:

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-19.2.zip
unzip setuptools-19.2.zip
cd setuptools-19.2
python setup.py install
like image 41
mcbill Avatar answered Nov 14 '22 21:11

mcbill