在 mac 上安装 smartsheet-python-sdk 时出错

error when installing smartsheet-python-sdk on mac

我在 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$

我发现这个 post 指的是 python 软件包依赖于 OS X 10.11 的已知问题,并使用“--ignore-installed”标志解决它在 pip 命令上成功了!

link to solution post

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