This question already has answers here:
Solving "DLL load failed: %1 is not a valid Win32 application." for Pygame
(5 answers)
Closed 7 years ago.
I installed pygame using pip, but when i try to import it, it gives me this error. What could be the possible problem ?
*update, i downloaded a 32 bit version of pygame, extract it to python directory\Lib\site-packages and it's working now
This happens when the bits of python you are working and the package doesn't match. It seems you are working in a 64-bit python and you have installed 32-bit python pygame package. you can find the 64-bit pygame package here
Related
This question already has answers here:
Azure Python SDK for Blobs - ImportError: cannot import name 'BlobClient'
(1 answer)
Comprehensive beginner's virtualenv tutorial? [closed]
(4 answers)
Closed 1 year ago.
With Python 3.8.7 I have a problem importing Python Azure SDK for Blobs !
cannot import name 'BlobClient' from 'azure.storage.blob
I used this :
pip install azure-storage-blob
I checked the connection string value and still have the problem.
I am running it in a python 3.8.7 venv.
I have just tested it locally without the venv, I can import and it works.
Is there any specificity while using a venv ?
I have just test it with the python 3.8.7 version and I got always the some problem even after doing the upgrade
This question already has answers here:
pygame installation issue in mac os
(5 answers)
Error when installing PyGame on Mac (Catalina) [duplicate]
(2 answers)
Pygame not showing anything in the window [duplicate]
(2 answers)
Closed 2 years ago.
please can anyone help me to sort out this issue. when i try to import pygame it's not working and giving me this error
#
import pygame
ImportError: No module named pygame
i'm using python 3.8 and os catalina
Thanks.
If your import statement is # import pygame then remove the # symbol
Open the terminal and run pip install pygame and then try to import pygame
If you are using any virtual environment first activate the virtual environment from the project location and then run the above command
This question already has answers here:
pycharm doesn't recognize pygame package
(2 answers)
Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'dir:\projectPath\venv\Scripts\python.exe'
(8 answers)
Closed 2 years ago.
I installed Pycharm and then for the project setting I installed the package for pygame(Specify that I work on a mackbook). After all of this I tried to run the code which is:
import pygame
pygame.init()
pygame.display.set_mode((400,500))
while True:
pass
When I run the program the Python Launcher keeps jumping in the dock but it won't work.
I've tried even before with other codes that had no other errors, but still it didn't work.
This question already has answers here:
Get rid of pyximport
(2 answers)
Closed 4 years ago.
Disclaimer: I am using anaconda and python2.7.
I just compiled a cython module my_module.pyx with distutils (build_ext --inplace) and the compilation went just fine. I can import it in any regular python console.
import my_module
But whenever I do it inside an Ipython console in spyder I get the not very helpful message:
ImportError: Building module my_module failed: ["CompileError: command 'gcc' failed with exit status 1\n"]
I checked both paths using sys they are the same except that Ipython has some additional paths related to ipython utilities.
What could be the origin of these differences in behaviour ?
(Spyder maintainer here) This problem was already fixed and it'll be solved after our 3.2.8 version is released.
This question already has answers here:
How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
(23 answers)
Closed 6 years ago.
I'm currently trying to migrate to Atom to use as a code editor for python at home.
After following tutorials on how to set this up I have installed the packages atom-runner and script.
I tried running it and got the following error message:
I've looked into what and where the path is exactly and how to correct it but I haven't found any sufficent explanation.
How do I fix it?
So I know how to make the PYTHONPATH variable except I don't know what the value should be. How do I determine the value?
You are missing a path to python binaries in the system PATH. This question has everything you need to fix your issue: How to add to the pythonpath in windows 7? How To Add Python to the Windows Path