Install spacy in python

Hey, I tried to install spacy in python. It worked out and I can find it in the pip list in my terminal. But now if i try to run my python programme there is an error that says “no module named spacy”. I don’t know what to do because it is installed.
Have you any idea?
I would appreciate any help.
Thanks
btw i use windows

How did you install it?

I did
„pip install spacy“ and then „python -m spacy download de_core_news_sm“
After that i checked it with „pip list“ and SpaCy as well as the language package were listed.

The pip you’re using probably doesn’t match the python you’re using. Try python -m pip install spacy

Thanks for your help, but I tried it and it doesn’t work either. There is the same mistake “no module named spacy”. During the installation there is warning that says: WARNING: The script spacy.exe is installed in ‘C:\Users\Alexa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Maybe it is something wrong about this?

I’m out of ideas. You’d probably be better off asking on a spacy specific list.

Okay thanks for your help anyways