错误:pkg_resources.DistributionNotFound:找不到“ colorlog”分布,仙人掌需要此分布

问题描述

要在netlify中上传我的Django项目,我安装了仙人掌,并试图构建自己的网站。

cactus create ~/mysite
Traceback (most recent call last):
  File "/usr/local/bin/cactus",line 5,in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 3095,in <module>
    @_call_aside
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 3081,in _call_aside
    f(*args,**kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 3108,in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 658,in _build_master
    ws.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 959,in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 846,in resolve
    raise DistributionNotFound(req,requirers)
pkg_resources.DistributionNotFound: The 'colorlog' distribution was not found and is required by Cactus

我已经通过安装了色彩记录

pip3 install colorlog --user

如何解决此问题?

解决方法

遇到了与sudo cactus serve相同的错误

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...