spotipy-dev / spotipy

A light weight Python library for the Spotify Web API
http://spotipy.readthedocs.org
MIT License
4.92k stars 955 forks source link

Cannot import spotipy on windows #1029

Closed 5aumit closed 3 days ago

5aumit commented 10 months ago

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:

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.

rileyl12 commented 9 months ago

I have the same issue

BMakx commented 9 months ago

Same issue here

jaredbach commented 7 months ago

Same issue

dieser-niko commented 2 months ago

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

dieser-niko commented 3 days ago

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