安装Plotly错误:命令错误,退出状态为1:

时间:2020-04-05 15:25:33

标签: python plotly

我是python笔记本和python的新手。我目前在LinkedIn学习上使用python进行数据科学,但遇到以下问题,找不到解决方案。

''''! pip3 install plotly''''
Collecting plotly
  Using cached https://files.pythonhosted.org/packages/15/90/918bccb0ca60dc6d126d921e2c67126d75949f5da777e6b18c51fb12603d/plotly-4.6.0-py2.py3-none-any.whl
Requirement already satisfied: six in ./Library/Python/3.8/lib/python/site-packages (from plotly) (1.14.0)
Collecting retrying>=1.3.3 (from plotly)
  Using cached https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Installing collected packages: retrying, plotly
  Running setup.py install for retrying ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/
    Complete output (9 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib
    copying retrying.py -> build/lib
    running install_lib
    copying build/lib/retrying.py -> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
    error: could not create '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/retrying.py': Permission denied
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

1 个答案:

答案 0 :(得分:0)

尝试:

pip install plotly==4.6.0 --user

https://plotly.com/python/getting-started/