If you’re creating a debugging post, please include the following info:
- Are you running your app locally or is it deployed?
- If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
b. Share the link to the public deployed app. - Share the link to your app’s public GitHub repository (including a requirements file).
- Share the full text of the error message (not a screenshot).
- Share the Streamlit and Python versions.
I have trouble with installing streamlit
python 3.12
and the error message
This is the error message I got from CLI…
C:\Users\happy>pip install streamlit
Collecting streamlit
Using cached streamlit-1.36.0-py2.py3-none-any.whl.metadata (8.5 kB)
Collecting altair<6,>=4.0 (from streamlit)
Using cached altair-5.3.0-py3-none-any.whl.metadata (9.2 kB)
Collecting blinker<2,>=1.0.0 (from streamlit)
Using cached blinker-1.8.2-py3-none-any.whl.metadata (1.6 kB)
Collecting cachetools<6,>=4.0 (from streamlit)
Using cached cachetools-5.4.0-py3-none-any.whl.metadata (5.3 kB)
Collecting click<9,>=7.0 (from streamlit)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting numpy<3,>=1.20 (from streamlit)
Using cached numpy-2.0.1.tar.gz (18.9 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
+ C:\msys64\clang64\bin\python.exe C:\Users\happy\AppData\Local\Temp\pip-install-br5z8x4e\numpy_839ac8aa6b6e4fb59fef7fc64a483863\vendored-meson\meson\meson.py setup C:\Users\happy\AppData\Local\Temp\pip-install-br5z8x4e\numpy_839ac8aa6b6e4fb59fef7fc64a483863 C:\Users\happy\AppData\Local\Temp\pip-install-br5z8x4e\numpy_839ac8aa6b6e4fb59fef7fc64a483863.mesonpy-zf9hpp4x -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\happy\AppData\Local\Temp\pip-install-br5z8x4e\numpy_839ac8aa6b6e4fb59fef7fc64a483863.mesonpy-zf9hpp4x\meson-python-native-file.ini
The Meson build system
Version: 1.4.99
Source dir: C:\Users\happy\AppData\Local\Temp\pip-install-br5z8x4e\numpy_839ac8aa6b6e4fb59fef7fc64a483863
Build dir: C:\Users\happy\AppData\Local\Temp\pip-install-br5z8x4e\numpy_839ac8aa6b6e4fb59fef7fc64a483863.mesonpy-zf9hpp4x
Build type: native build
Project name: NumPy
Project version: 2.0.1
C compiler for the host machine: cc (clang 18.1.2 “clang version 18.1.2”)
C linker for the host machine: cc ld.lld 18.1.2
C++ compiler for the host machine: c++ (clang 18.1.2 “clang version 18.1.2”)
C++ linker for the host machine: c++ ld.lld 18.1.2
Cython compiler for the host machine: cython (cython 3.0.10)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:\msys64\clang64\bin\python.exe)
Found pkg-config: YES (C:\msys64\clang64\bin\pkg-config.EXE) 2.2.0
Run-time dependency python found: YES 3.11
Has header “Python.h” with dependency python-3.11: NO
..\meson.build:44:2: ERROR: Problem encountered: Cannot compile `Python.h`. Perhaps you need to install python-dev|python-devel
A full log can be found at C:\Users\happy\AppData\Local\Temp\pip-install-br5z8x4e\numpy_839ac8aa6b6e4fb59fef7fc64a483863\.mesonpy-zf9hpp4x\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
How can I solve this problem?
Please help me