You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed numpy, requests but still i cannot install nba_api
I run this in cmd.
Thank you. Really sorry because i'm really new into this
Code
pip install nba_api
Defaulting to user installation because normal site-packages is not writeable
Collecting nba_api
Using cached nba_api-1.7.0-py3-none-any.whl.metadata (5.5 kB)
Collecting numpy<2.0.0,>=1.22.2 (from nba_api)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\Minh Tri\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\python.exe C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965\vendored-meson\meson\meson.py setup C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965 C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965.mesonpy-6yiuyd7v -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965.mesonpy-6yiuyd7v\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965
Build dir: C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965.mesonpy-6yiuyd7v
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not parse vswhere.exe output
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
A full log can be found at C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965\.mesonpy-6yiuyd7v\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.
The text was updated successfully, but these errors were encountered:
I solved the same problem by changing the version of python from 3.13 to 3.11. I used virtualenv to change the version of venv. virtualenv .venv --python=python3.11
NBA API Version
V1.7.0
Issue
I have installed numpy, requests but still i cannot install nba_api
I run this in cmd.
Thank you. Really sorry because i'm really new into this
Code
pip install nba_api
Defaulting to user installation because normal site-packages is not writeable
Collecting nba_api
Using cached nba_api-1.7.0-py3-none-any.whl.metadata (5.5 kB)
Collecting numpy<2.0.0,>=1.22.2 (from nba_api)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\Minh Tri\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\python.exe C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965\vendored-meson\meson\meson.py setup C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965 C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965.mesonpy-6yiuyd7v -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965.mesonpy-6yiuyd7v\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965
Build dir: C:\Users\Minh Tri\AppData\Local\Temp\pip-install-fl8sxvq5\numpy_24d3e6c9074442dbbfd918c9d5dd1965.mesonpy-6yiuyd7v
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not parse vswhere.exe 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.
The text was updated successfully, but these errors were encountered: