Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot install nba_api #500

Closed
TennisTerror opened this issue Jan 19, 2025 · 3 comments
Closed

[Bug]: Cannot install nba_api #500

TennisTerror opened this issue Jan 19, 2025 · 3 comments
Labels
question Inquiry from community

Comments

@TennisTerror
Copy link

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

  ..\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.

@TennisTerror TennisTerror added bug Something isn't working triage Researching into a possible bug labels Jan 19, 2025
@rsforbes
Copy link
Collaborator

@TennisTerror - I'm not familiar with the error. Might try a Google search for the error or check with ChatGPT or Claude for suggestions.

A quick search on WARNING: Failed to activate VS environment: Could not parse vswhere.exe output seemed to indicate an issue with VSCODE C++.

@rsforbes rsforbes added question Inquiry from community and removed bug Something isn't working triage Researching into a possible bug labels Jan 20, 2025
@bieben
Copy link

bieben commented Feb 1, 2025

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

Hope this helps!

@TennisTerror
Copy link
Author

Nice. Really helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Inquiry from community
Projects
None yet
Development

No branches or pull requests

3 participants