-3

Currently trying to make voice commands for my PC. Whenever I try to install any module's, I get WARNING: Ignoring invalid distribution ~ (C:\Users\Username\AppData\Local\Programs\Python\Python311\Lib\site-packages)

This has been going on for a while, but through attempting different pip installs, or brute force, I could install modules. It's finally stopped working, so I need help to figure out why this happened and how to fix it. Since, despite saying it's installed, it still won't work afterwards.

I'm on a Windows desktop. And this glitch happens with any installation I attempt on the command prompt.

I tried pip, unable to use pip, pip -m, pipwin, and suga pi, and pip-m doesn't work, pipwin is unavailable for my device, and so is suga I'm trying to install pyaudio, whenever I try it or any other module for that matter, i get the error previously stated. That being. WARNING: Ignoring invalid distribution ~ (C:\Users\Username\AppData\Local\Programs\Python\Python311\Lib\site-packages)

3
  • use ``` to format block with error mesage, commands, etc. Commented Aug 23 at 20:09
  • show commands which you use to install module. Maybe you use wrong path or something. Commented Aug 23 at 20:11
  • always put full error message because there are other useful information. Commented Aug 23 at 20:11

1 Answer 1

0

Delete the stray ~ folder in site-packages, run pip cache purge, then install the correct PyAudio wheel for Python 3.11 from Gohlke’s site using python -m pip install <whl> instead of pip install pyaudio

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.