我在使用pip(Python 2.7)安装最新的ruamel.yaml时遇到此错误:
File "/tmp/pip-build-jkyN5X/ruamel.yaml/util.py", line 10, in <module>
from .compat import text_type, binary_type
ValueError: Attempted relative import in non-package
----------------------------------------
Cleaning up...
修复相对导入会导致导入错误。什么是正确的解决方案?