我在Mac上安装smartsheet-python-sdk软件包时出现以下错误。任何人都可以给我任何指示吗?
> dleclair-mbp:smartsheet dleclair$ sudo pip install
> smartsheet-python-sdk
>.
>.
> smartsheet-python-sdk) Collecting six>=1.9 (from
> smartsheet-python-sdk) Downloading six-1.10.0-py2.py3-none-any.whl
> os.chflags(dst, st.st_flags) OSError: [Errno 1] Operation not permitted:
> '/tmp/pip-yDYmT1-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
> dleclair-mbp:smartsheet dleclair$
答案 0 :(得分:1)
我发现这篇帖子引用了OS X 10.11上python包依赖的已知问题,并使用' - ignore-installed'来解决它。在pip命令上标记并且它有效!
Installing collected packages: requests, six, certifi, python-dateutil, requests-toolbelt, smartsheet-python-sdk
Successfully installed certifi-2017.4.17 python-dateutil-2.6.0 requests-2.14.2 requests-toolbelt-0.8.0 six-1.10.0 smartsheet-python-sdk-1.2.0