git clone git://github.com/openstack-dev/pbr.gitcd pbrsudo python setup.py install
但我得到以下错误跟踪
Traceback (most recent call last): file "setup.py",line 22,in <module> **util.cfg_to_args()) file "/Users/jimcgh/dev/pbr/pbr/util.py",line 241,in cfg_to_args pbr.hooks.setup_hook(config) file "/Users/jimcgh/dev/pbr/pbr/hooks/__init__.py",line 27,in setup_hook Metadata_config.run() file "/Users/jimcgh/dev/pbr/pbr/hooks/base.py",line 29,in run self.hook() file "/Users/jimcgh/dev/pbr/pbr/hooks/Metadata.py",line 28,in hook self.config['name'],self.config.get('version',None)) file "/Users/jimcgh/dev/pbr/pbr/packaging.py",line 817,in get_version version = _get_version_from_git(pre_version) file "/Users/jimcgh/dev/pbr/pbr/packaging.py",line 776,in _get_version_from_git "git --git-dir=\"" + git_dir + "\" describe --always").replace( file "/Users/jimcgh/dev/pbr/pbr/packaging.py",line 220,in _run_shell_command stderr=err_location) file "/System/library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",line 679,in __init__ errread,errwrite) file "/System/library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",line 1228,in _execute_child raise child_exceptionTypeError: must be encoded string without NulL bytes,not str
我怎样才能解决这个问题 ?
请帮忙.
谢谢
sudo easy_install pip # if you don't already have pippip install pbr
如果您有easy_install或pip,请按照this教程进行 *** 作.
如果您不想使用像easy_install或pip这样的包管理器.然后你可以转到the PyPI
page,然后下载tarball.只需提取tarball并在pbr包中运行python setup.py即可.但是安装pip将来会为你节省很多麻烦.
以上是内存溢出为你收集整理的python – 安装pbr时出错全部内容,希望文章能够帮你解决python – 安装pbr时出错所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)