streamlitをインストールできません。
解決したいこと
macを使っています。streamlitをインストールしたいのですが、エラーでインストールできません。
対処方法をお教えいただけると嬉しいです。
発生している問題・エラー
出ているエラーメッセージを入力
Collecting streamlit
Using cached https://files.pythonhosted.org/packages/57/3c/3435b11cea87499c4cd35c17420dd9232c3dfc951d6f772ab97698d158c7/streamlit-0.55.2-py2.py3-none-any.whl
Collecting boto3 (from streamlit)
Using cached https://files.pythonhosted.org/packages/11/20/4294e37c3c6936c905f1e9da958c776d7fee54a4512bdb7706d69c8720e6/boto3-1.17.84-py2.py3-none-any.whl
Collecting enum-compat (from streamlit)
Using cached https://files.pythonhosted.org/packages/41/46/8ed2368976d934652d8f33f1fdd86f5580fab45e890c90a848e83097a093/enum-compat-0.0.3.tar.gz
Collecting astor (from streamlit)
Using cached https://files.pythonhosted.org/packages/c3/88/97eef84f48fa04fbd6750e62dcceafba6c63c81b7ac1420856c8dcc0a3f9/astor-0.8.1-py2.py3-none-any.whl
Collecting toml (from streamlit)
Using cached https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
Collecting tzlocal (from streamlit)
Downloading https://files.pythonhosted.org/packages/5d/94/d47b0fd5988e6b7059de05720a646a2930920fff247a826f61674d436ba4/tzlocal-2.1-py2.py3-none-any.whl
Collecting pydeck>=0.1.dev5 (from streamlit)
Downloading https://files.pythonhosted.org/packages/d6/bc/f0e44828e4290367c869591d50d3671a4d0ee94926da6cb734b7b200308c/pydeck-0.6.2-py2.py3-none-any.whl (4.2MB)
100% |████████████████████████████████| 4.2MB 49kB/s
Collecting botocore (from streamlit)
Downloading https://files.pythonhosted.org/packages/bc/22/72c81d754bbcb128cba2ad88670c3c320e4594e6ddd8cca6512c3967108c/botocore-1.20.84-py2.py3-none-any.whl (7.6MB)
100% |████████████████████████████████| 7.6MB 78kB/s
Collecting pillow>=6.2.0 (from streamlit)
Downloading https://files.pythonhosted.org/packages/d1/6a/41719faa7421602a85941867059f53787ac40c85c8fe9e6bb48809e3246e/Pillow-6.2.2-cp27-cp27m-macosx_10_6_intel.whl (3.9MB)
100% |████████████████████████████████| 3.9MB 115kB/s
Requirement already satisfied: python-dateutil<=2.8.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from streamlit)
Collecting watchdog (from streamlit)
Using cached https://files.pythonhosted.org/packages/f3/6e/14f228ece54c289af148f9f588d9e591fa8294e36193c1904682affb2751/watchdog-1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/gv/3w0mpwc513z5kwzz60c88n_00000gn/T/pip-build-_gBYNR/watchdog/setup.py", line 18, in <module>
import importlib.util
ImportError: No module named util
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gv/3w0mpwc513z5kwzz60c88n_00000gn/T/pip-build-_gBYNR/watchdog/
You are using pip version 9.0.1, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip install --upgrade pi を実行してみたのですが、以下のようなエラーが出ます。
Collecting pip
Using cached https://files.pythonhosted.org/packages/27/79/8a850fe3496446ff0d584327ae44e7500daf6764ca1a382d2d02789accf7/pip-20.3.4-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.1
Uninstalling pip-9.0.1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 326, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-9.0.1.dist-info/DESCRIPTION.rst'
You are using pip version 9.0.1, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
0 likes