问题描述
我正在尝试使用来安装Halo,
Im trying to install Halo by using,
pip install halo
我收到以下错误消息:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9s/vjh90rsn4xl5587hr11qpjjh0000gn/T/pip-install-L5LD_D/halo/setup.py'"'"'; __file__='"'"'/private/var/folders/9s/vjh90rsn4xl5587hr11qpjjh0000gn/T/pip-install-L5LD_D/halo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/9s/vjh90rsn4xl5587hr11qpjjh0000gn/T/pip-install-L5LD_D/halo/pip-egg-info
cwd: /private/var/folders/9s/vjh90rsn4xl5587hr11qpjjh0000gn/T/pip-install-L5LD_D/halo/
Complete output (3 lines):
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
error in halo setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected ',' or end-of-list in backports.shutil_get_terminal_size>=1.0.0;python_version < '3.3' at ;python_version < '3.3'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我的python版本是2.7.10.
My python version is 2.7.10.
我进行了一些研究,并尝试了以下解决方案,
I made some research and tried the following solutions,
brew install halo
这不起作用,我的终端返回了:
This did not work and my terminal returned:
Error: No formulae found in taps.
我在自制软件中检查了我的公式,但是找不到Halo.但是,我找到了其他软件包,因此我的Homebrew可以正常工作.
I checked my Formulae in Homebrew and could not find Halo. However, I found other packages so my Homebrew work otherwise.
我尝试通过更改别名并再次安装halo来将python版本更改为3,但它也不起作用.
I tried chaning my python version to 3 by changing alias and installing halo again, and it did not work either.
alias python='python3'
错误提示与python2相同,如上所述.
Error massage was the same as for python2, as above.
我需要为学校实验室提供光环,并且需要使用Mac.
I need halo for a school lab, and im using Mac.
推荐答案
这似乎是该软件包的已知错误:
It looks like it's a known bug for that package:
https://github.com/manrajgrover/halo/issues/79
您只需要通过以下方法更新设置工具:pip install -U setuptools
You just have to update setup tools via: pip install -U setuptools
如果这不起作用,请尝试添加--user标志:pip install --user -U setuptools
If that doesn't work, try adding the --user flag: pip install --user -U setuptools
这篇关于安装软件包halo会显示错误:"install_requires"必须是包含有效项目/版本要求说明符的字符串或字符串列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!