How do I do to solve the 0xc000007b error? [duplicate] - python

This question already has answers here:
Cannot Open Python. Error 0xc000007b
(12 answers)
Closed 1 year ago.
I installed python3 on my PC (Windows 7 sp1) but when I try tu run it told me first that there was a dll error, I thought I would solve it by downloading some files after googling my problem, effectively there is no dll error anymore but now there is "0xc000007b error" I searched a lot in Google and youtube but it doesn't work, how do I do please?

Try to uninstall it and download Python Releases for Windows. Please note that
Note that Python 3.9.6 cannot be used on Windows 7 or earlier.

Related

VS Code - Terminal not responding to input, Terminal running at wrong place, Pygame not installing [duplicate]

This question already has answers here:
How to install pygame?
(4 answers)
Unable to install Pygame using pip
(27 answers)
Closed 12 days ago.
This post was edited and submitted for review 12 days ago and failed to reopen the post:
Original close reason(s) were not resolved
VS Code not responding to ternimal input. Pygame will not install. Ternimal running place is wrong.
As of right now I am using two different computers hence the use of OneDrive (I know it's not optimal). Everything works absolutely fine on my other computer, including terminal input and pygame installation, running Python 3.11.2 MS Store version.
For the sake of this case I saved a py. file in the Downloads-folder (localy) and the terminal says that it is running from OneDrive, even though the file is not saved there.
I primarely use VS Code, but since this isn't working, I installed Spyder where pip works fine with minicoda.
Spyder Kernal/Console and pygame are working fine with conda: spyder-env (Python 3.10.9)
This is my first year learning Python so I'm really not sure what to do. My teacher is just as uncertain.
WHAT I HAVE TRIED:
VS Code:
I have tried re-installing VS Code by first deleting it completely. https://code.visualstudio.com/docs/setup/uninstall
Python:
I have tried re-innstalling Python with different versions.
Python: https://i.stack.imgur.com/ks7ND.png
Conda: https://i.stack.imgur.com/UDQyl.png
MS Store Python: https://i.stack.imgur.com/yfAAs.png

Pygame is not importing [duplicate]

This question already has answers here:
Pylint "unresolved import" error in Visual Studio Code
(40 answers)
PyLint "Unable to import" error - how to set PYTHONPATH?
(33 answers)
Imports failing in VScode for pylint when importing pygame
(3 answers)
Closed 1 year ago.
I’ve downloaded pygame but VS code says, in the problems section , it is “Unable to import ’pygame’ pylint(import-error)”
In the terminal it says “ModuleNotFoundError: No module named ‘pygame’”
What could be causing it to not import?
Edit: I added some more specifics
I'm pretty new to python, but I'll try to give you a solution.
You could create a virtual environment in your terminal. If you don't know how to do that, here's a link to a website I found for macos, https://sourabhbajaj.com/mac-setup/Python/virtualenv.html. For windows, https://mothergeo-py.readthedocs.io/en/latest/development/how-to/venv-win.html. Activate the virtualenv, and then pip install pygame inside the virtualenv, so when you run your code, pygame should work as long as the virtualenv you downloaded pygame in is activated.
I really hope this helps as this is my first time answering a question on stackoverflow!

Python opencv video capture giving abort trap [duplicate]

This question already has answers here:
OpenCV Python Scripts Mac "aborts"
(4 answers)
Closed 4 years ago.
I recently got a new Mac (macOS 10.14) and am trying to run the video capture method with openCV and python2.7.15.
import cv2
cv2.VideoCapture(0)
And I am getting the following error message:
Abort trap: 6
I have no idea why this is happening, it worked fine on my old computer, my guess is something with camera permissions maybe? Any help would be greatly appreciated.
I have encountered the same error after update to macOS 10.14(Mojave).
I used otool to debug, got this :
mac os error
These file reported on picture is from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMediaIO.framework
after update iterm to "Build 3.2.4beta1", the "privacy problem" solved

How to import logistic_sgd [duplicate]

This question already has answers here:
logistic_sgd module, where to find it?
(4 answers)
Closed 5 years ago.
Now, I am using anaconda 2 and python 2.7 to try to complete an auto-encoder problem. The code on the internet requires "import logistic_sgd". However, when I wrote "pip install logistic_sgd" in my cmd, I get:
could not find a version that satisfies the requirement logistic_sgd
No matching distribution found for logistic_sgd
Can someone help me solve the problem?
logistic_sgd.py is a file you need to download: http://deeplearning.net/tutorial/code/logistic_sgd.py

Error while installing python-snappy [duplicate]

This question already has answers here:
C99 stdint.h header and MS Visual Studio
(7 answers)
Closed 6 years ago.
I'm basically trying to install a package that requires snappy compiled in c for speed. I have already downloaded and installed the required compiler from here https://www.microsoft.com/en-au/download/details.aspx?id=44266.
This http://imgur.com/DV8J897 is the error I'm getting.
I can't figure out why it's not able to get stdint.h. It should come with the compiler right?
Any tips would be appreciated.
Similar error seen in: https://github.com/FSX/misaka/issues/49
User solved the problem doing:
Download Visual C++ for Python from https://www.microsoft.com/download/details.aspx?id=44266
Copy stdint.h to installation path\VC\include

Categories

Resources