简体   繁体   中英

Pip Errors Out When Installing Anything

I've run into an odd issue where pip just won't work. I'm using the latest version of PyCharm, and I've tried both Python 3.8.10 and 3.9.6. I've done clean installations of both, removed from PATH, reinstalled with new installer, reinstalled pip, etc. The error code I run into appears no matter what library I am trying to download. I've tried PyAudio , PyGame , OpenCV-Python and others. Pip was working fine a couple days ago, and no changes have been made to any files in that time. Attempting to run pip install --upgrade pip does not have an effect.

I've been running off virtual enviroments with setuptools 40.8.0 and pip 21.1.3 installed.

The full error for installing PyAudio can be seen here: https://pastebin.com/iQmZwsRv

PyGame error: https://pastebin.com/WEF8uM2d

OpenCV-Python Error: https://pastebin.com/LuZq99Cu

Py- audio - it's not compatible with your Py charm I suppose due to the latest install updates, try to install it on the main environment. Also, try to downgrade your version of python as many dependencies are not compatible with your version of python as stated by error[ it is not compatible with this Python ]

Open Cv - Fails to build the wheel package as it is attributed also in error [ CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. ]

May I know what build tool are you using?

Pygame is a very helpful and amazing module. When I was installing it in python,I was also having some sort of errors,but then I restarted my IDE(Vs code)and then I opened a new file.Then I imported the module and it worked. Follow the given steps: 1.Check whether you have correctly installed the module or not by executing this statement in the terminal- "python -m pip install ________" if it shows that requirement already satisfied then your module is installed correctly. 2. Open a new file ____.py ,you can name the file anything. 3.Import the module you want.

Have your fun!!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM