About python pip installation (pip install pyswmm) error

C:\WINDOWS\system32>pip install PySWMM
Collecting PySWMM
Using cached pyswmm-1.2.0-py3-none-any.whl (101 kB)
Collecting swmm-toolkit>=0.9.0
Using cached swmm-toolkit-0.9.0.zip (640 kB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “C:\Users\BiHa\AppData\Local\Temp\pip-install-1trx6gdi\swmm-toolkit_4953af2bc00347d3832818f038d02478\setup.py”, line 20, in
from skbuild import setup
ModuleNotFoundError: No module named ‘skbuild’
[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.

Looks like a missing dependency (skbuild is familiar, comes from scikit-build package). Best to contact the project in question, they’d probably know best - probably it’s a problem of something in the chain not supporting the Python version you’re using.

1 Like

Thanks bro
How do I get the scikit-build package

Hi, I have the same problem. What could we do?