gpt4 book ai didi

python - 错误 : "No module named _markerlib" when installing some packages on virtualenv

转载 作者:IT老高 更新时间:2023-10-28 20:24:00 24 4
gpt4 key购买 nike

由于这个错误,我无法在 virtualenv 上安装一些包。

我尝试安装:

pip install pyups==0.4.4

pip install --upgrade distribute

他们给了我错误:

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

我也试过用

安装markerlib
pip install markerlib

但错误仍在继续。

最佳答案

$ easy_install distribute

或从源代码构建对我有用

关于python - 错误 : "No module named _markerlib" when installing some packages on virtualenv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35780537/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com