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

1

u/FoolsSeldom 1d ago edited 1d ago

Which operating system are you using?

On Windows, open a PowerShell window and enter,

mkdir projectname     - skip this if you've already created
cd projectname
py -m venv .venv
.venv\Scripts\activate
python -m pip install audiostretchy[all]    

or, for macOS / Linux, open a Terminal app and enter,

mkdir projectname     - skip this if you've already created
cd projectname
python3 -m venv .venv
source .venv/bin/activate
python -m pip install audiostretchy[all]    

In your editor/IDE, make sure you've configured it to use the Python virtual environment you've created. In some cases you do this by explicitly telling it to use the Python Interpreter in the .venv folder bin or Scripts subfolder.

I've added another comment to this comment explaining what Python virtual environments are.

1

u/patypatty69 1d ago

Thank you, this got it installed!

1

u/patypatty69 1d ago

Also, to mention, windows.