[GH-ISSUE #1029] Cannot import spotipy on windows #613

Closed
opened 2026-02-28 00:00:17 +03:00 by kerem · 5 comments
Owner

Originally created by @5aumit on GitHub (Oct 2, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1029

I installed spotipy into a virtual environment on my windows machine with this command.
pip install spotipy
It installs without any errors. When I run pip list within my virtual environment it also shows up as spotipy 2.23.0.

If I run python in a terminal and import spotipy, it seems to work.
However, when I import it in a jupyter notebook or a python console in jupyter lab, it does not work saying there's no module named spotipy.

Environment:

  • OS == Windows 11
  • Python version == 3.8.0
  • spotipy version == 2.23.0
  • IDE == Jupyter Lab

Additional context
Any other packages that I have installed in my virtual environment are imported with no issues. Its only spotipy which does not import. I also tried installing spotipy with various other commands on the internet regarding specifying pip3, python3, -m etc.

I referred to the following issues but there was no resolution.

These are rather old as well. The solution proposed was regarding added compatibility with python 3 but that sounds like an outdated problem.

Originally created by @5aumit on GitHub (Oct 2, 2023). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1029 I installed spotipy into a virtual environment on my windows machine with this command. `pip install spotipy` It installs without any errors. When I run `pip list` within my virtual environment it also shows up as `spotipy 2.23.0`. If I run `python` in a terminal and import spotipy, it seems to work. However, when I import it in a jupyter notebook or a python console in jupyter lab, it does not work saying there's no module named spotipy. **Environment:** - OS == Windows 11 - Python version == 3.8.0 - spotipy version == 2.23.0 - IDE == Jupyter Lab **Additional context** Any other packages that I have installed in my virtual environment are imported with no issues. Its only spotipy which does not import. I also tried installing spotipy with various other commands on the internet regarding specifying pip3, python3, -m etc. I referred to the following issues but there was no resolution. - [#254 ] - [#34 ] These are rather old as well. The solution proposed was regarding added compatibility with python 3 but that sounds like an outdated problem.
kerem 2026-02-28 00:00:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rileyl12 commented on GitHub (Oct 5, 2023):

I have the same issue

<!-- gh-comment-id:1749416623 --> @rileyl12 commented on GitHub (Oct 5, 2023): I have the same issue
Author
Owner

@BMakx commented on GitHub (Oct 8, 2023):

Same issue here

<!-- gh-comment-id:1752001400 --> @BMakx commented on GitHub (Oct 8, 2023): Same issue here
Author
Owner

@jaredbach commented on GitHub (Dec 8, 2023):

Same issue

<!-- gh-comment-id:1846573021 --> @jaredbach commented on GitHub (Dec 8, 2023): Same issue
Author
Owner

@dieser-niko commented on GitHub (May 21, 2024):

Just a quick question: are you all using Jupyter, or does this problem also occur in a Python script?

<!-- gh-comment-id:2123460424 --> @dieser-niko commented on GitHub (May 21, 2024): Just a quick question: are you all using Jupyter, or does this problem also occur in a Python script?
Author
Owner

@dieser-niko commented on GitHub (Jul 25, 2024):

Well, since I didn't get a single answer, I'm going to close this issue.

<!-- gh-comment-id:2250128489 --> @dieser-niko commented on GitHub (Jul 25, 2024): Well, since I didn't get a single answer, I'm going to close this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#613
No description provided.