I got this error while learning how to code android games in python:
ModuleNotFoundError: No module named 'pygame'
I looked up this error online and found out that I needed the 64bit version of pygame, so I went to this website:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
I downloaded the 3.7 version of pygame in 64bit, I installed wheel with pip and when I try to pip install the 3.7 version of pygame this error comes up:
"pygame-1.9.4-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform."
How can I fix this?
My python version is python3.6, and I installed pygame through the command:
pip install pygame
Is ok:
Maybe you can first update your pip, and then install it by this command.
Related
I have created a virtual environment on Ubuntu 18.0 series with Python 3.5. I am unable to import cv2, error is no module found and a trace back related to Python 2.7. I have already pip installed opencv-Python and opencv-contrib-Python but still the issue persists.
Please help at the earliest.
There a few ways you could go about this:
Using python3
Try:
python3 -m pip install opencv-python opencv-contrib-python
Deactivate your virtual enviroment
Try deactivating your virtual environment by typing deactivate and re-activating it again.
And If all else fails:
Reinstalling Python
Python 3.5 and below no longer has official support, so that may (most likely not) be the problem.
My Tutorial for re-installing python can be found here.
After that, try:
pip install opencv-python opencv-contrib-python
When I want to run a game I programmed, I get the error message:
ModuleNotFoundError: No module named 'pygame'
I had problems installing pygame on my iMac (OSX Catalina). I have python 3.8.
From the command line I achieved installing pygame with:
pip3 install --user pygame
So what to next:
Check if I have the correct pygame version installed?
Does it matter where I install pygame?
What could be the reason of the error message?
My game worked on my MacBookPro but I had to give it away because of a damage. I remember, that I had to install some different version of pygame (some development version), because I couldn't install the normal one.
I could solve the problem now. python3 -m pip install --user --pre pygame=2.0.0-dev6 worked for me.
I HAVE PYTHON 3.6.6 INSTALLED IN MY WINDOWS 7 PLATFORM BUT WHEN I TRIED TO INSTALL OPENCV PACKAGE IT SAYS REQUIREMENT ALREADY SATISFIED AND IF I TRY TO IMPORT CV2 IT SAYS NO MODULE .I'VE TRIED ALL POSSIBLE METHODS ON INTERNET WHAT SHOULD I DO
i tried to download opencv exe from sourceforge and copying cv2.pyd file and then pasting it in site packages
i tried pip install opencv_python-4.0.1-cp37-cp37m-win_amd64.whl
but nothing works
The error message says that you are asking PIP install a version of cv2 for 64-bit Python 2.7, and that installation is failing. So the installation is not happening because it's the wrong version. That might be because you don't have Python 2.7, or because you have a 32-bit processor, or both. Navigate to Python36\Scripts and issue the command pip install opencv_python. Then pip will find the appropriate file to download, and install it.
Got an error installing scipy package (see attachement) from prompt. Windows 7, 64bit, Python 3.5.1. Also tryed scipy-0.19.0-cp35-cp35m-win_amd64.whl but got a scipy-0.19.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform response. So how to find the supported wheel? Thanks in advance!
UPDATE: Didn't find the way to install scipy package itself but installed Anaconda and made it as a default PyCharm Python interpreter, scipy imports properly now.
Update you pip
pip install --upgrade pip
And then try
pip install scipy
I have pythone3.5 and I am trying to install the Scipy module. I tried "pip install scipy" but it shows an error "numpy.distutils.system_info.NotfoundError: no lapack/blas resources found". I also tried to use "scipy-0.19.0-cp35-cp35m-win_amd64.whl" from "http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy" but it also didn't work, it shows "scipy-0.19.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform"
What should I do?
Try this:
pip3.5 install scipy