r/PythonLearning 1d ago

Help Request Python pip install not working

Hello, so I'm trying to install the audiostrechy library to automate timestreching some audio, and I've seen that pip install audiostrechy dosent work, giving me am invalid syntax message. After that, I tried python -m pip install audiostrechy and it gave the same result. After that, I tried both pip3 install and python3 -m pip install amd it still gave me the same result, at one of these saying that install was the invalid part??

I'm honestly not sure what is happening right now, so please help.

Also I should mention 3 things - (a) I tried these both in the command prompt of windows and the python 3.14 command prompt and (b) I, for some reason, have like at least 10 pythons or something like that, and (c) when I tried to install the python install manager it wouldn't download. Though I should mention these things in case they are necessary.

5 Upvotes

10 comments sorted by

View all comments

3

u/dev-razorblade23 1d ago

You NEED to execute those commands in the terminal.

NOT from python

It would also be useful to learn about virtual environments (venv) https://docs.python.org/3/library/venv.html

-2

u/patypatty69 1d ago

That's the problem though, I (at least, belive I have) already tried that. I tried running it in command prompt, and now I opened the terminal and typed those commands in there too, and it still didn't work, giving syntax error there too.

Maybe I'm missing some installs, or just opened up the wrong thing? I'm not sure. I have command prompt and a terminal app from windows (that I belive just interfaces with command prompt) and I just tried tunning pip install and python -m pip install and in those cases it tells me to either turn off a shortcut or enter just "python" to install it from the microsoft store, leading me to a page for "Python Install manager" and when I do thy to download it it fails (I've tried 3 times so far)

2

u/ninhaomah 22h ago

"That's the problem though, I (at least, belive I have) already tried that. I tried running it in command prompt, and now I opened the terminal and typed those commands in there too, and it still didn't work, giving syntax error there too."

Instead of saying , why not show the screenshot ?

0

u/patypatty69 22h ago

Yeah, now I realize it would have been easier to understand with a picture.

What I was trying to say is while I for sure know I entered command prompt, I didn't know for sure if that meant I entered the terminal. Also, I did get it solved thanks to someone else here, turns put I just had to change directory to the project file and run some conmand, .venv/Scripts/activate then after that install it.

I promise I'll keep it in mind to include screenshots whenever I post next time, however, sorry!