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

问题描述 投票:0回答:1

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

''''! 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.
python plotly
1个回答
0
投票

尝试:

pip install plotly==4.6.0 --user

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

© www.soinside.com 2019 - 2024. All rights reserved.