Comments (4)
I am using Python 2.7.15 which is the version that came installed on the corporate laptop I am currently using. Since I don't have admin rights on this machine, I can't update to Python 3 or use pip3.
from nba_api.
So I don't have a lot of experience with Jupyter notebooks, but I believe your issue is related to something different. It looks like the version of python that is running the Jupyter notebook does not contain nba_api. Your solution works, because you're taking it from the python version that has it installed.
import sys
print(sys.version)
Will let you know which Python version you are running. You might be able to quickly fix this issue by using pip3 instead of pip so try running the code below in terminal / command prompt and this might fix having to append the site-packages.
pip3 install nba_api
from nba_api.
That makes a lot more sense to me of why you had to go about it this way. Thanks for sharing!
from nba_api.
Contributions from @eswan18 will help people with this.
https://github.com/swar/nba_api/tree/master/docs/examples
from nba_api.
Related Issues (20)
- Play-in Season Type? HOT 3
- NBA API: timeout for /stats endpoints HOT 14
- [Bug]: boxscoredefense endpoint failing HOT 5
- Anyway to get the days a player did not play HOT 1
- [Question]How to get a player's playerdashptshotdefend of all opponent team
- Anyone here? Are some of these endpoints no longer usable? HOT 3
- Bug in nba_api/src/nba_api/stats/endpoints/__init__.py HOT 1
- Add Support for Python 3.11. HOT 2
- Look into different data structures being returned with v3 endpoints
- LeagueGameFinder only goes back so far?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 8
- [Bug]: Live Boxscore doesn't return response for anything before 2019-2023 HOT 4
- PROPOSAL: betting odds for recent games?
- [Bug]: PlayerGamelogs getting advanced stats HOT 5
- Get a list of players that participated a given game? HOT 1
- [Security (medium risk)]: Snyk- certifi Insufficient Verification of Data Authenticity
- [Security (medium)]: Synk, requests Information Exposure
- Question about The empty PlayerCareerStats object's datasets
- [Bug]: Scoreboard not showing Summer League games HOT 4
- Any way to get shot clock?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nba_api.