Jas*_*awn 3 macos python-2.7 pyrax
我正在使用ansible rax.py脚本来存储我的库存.我遇到的问题与ansible无关,但与pyrax或pbr无关.
我采取了以下步骤:
sudo pip install pyrax
python
>>> import pyrax
Run Code Online (Sandbox Code Playgroud)
然后我得到:
File "/Library/Python/2.7/site-packages/pbr/packaging.py", line 870, in get_version
raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?
Run Code Online (Sandbox Code Playgroud)
根据一些github问题,应该分别安装pbr来解决这个问题.我没有运气就这样做了.
pip show pbr
---
Name: pbr
Version: 0.10.0
Location: /Library/Python/2.7/site-packages
Requires: pip
pip show python-novaclient
---
Name: python-novaclient
Version: 2.19.0
Location: /Library/Python/2.7/site-packages
Requires: requests, iso8601, python-keystoneclient, Babel, oslo.utils, six, simplejson, pbr, PrettyTable, argparse
Run Code Online (Sandbox Code Playgroud)
我使用的是python 2.7.5而不是virtualenv.任何帮助将不胜感激!
谢谢巴里
以下似乎已经使事情有序:
pip install --upgrade distribute
Run Code Online (Sandbox Code Playgroud)
各种版本冲突后,所有一些乐于助人的工作人员救了我.
| 归档时间: |
|
| 查看次数: |
1657 次 |
| 最近记录: |