I'm desperate for any help that anyone can provide. I'm trying to install pygame 1.9.1 with 64 bit python 2.7 on a windows 64 bit machine. I have Visual Studio C++ Express 2008 and Visual Studio 2013, but the installation attempts to use the Express edition. This is the error message I keep getting: "fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory."
I've downloaded the SDL library from libsdl.org
I've followed the tutorial from here: http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet0508e/index.php
(the program I wrote worked, but the pygame one still won't)
I've followed a video similar to the lazyfoo tutorial that told me to add additional libraries.
I tried to follow this response: Pygame cannot find include file "sdl.h"
(my setup.py doesn't have that line)
I've looked up the error message on microsoft's website, and I can't figure out how to fix it. I can't even find where the include statement is within the pygame files. Can anyone help?
Try PyGame binary from Unofficial Windows Binaries for Python Extension Packages - and you will have no need to compile it on your own.
Related
I have just installed the latest version of Python 3.6.5 from python.org. I am using 64 bit Windows 8.1 .Earlier it was showing all kinds of .DLL errors, I tried installing all the updates and C++ Redistributable but nothing happened, then I manually downloaded all different DLL's and pasted them in the System-32 folder. By doing that the python command shell did start working but as soon as I try to open the IDLE, nothing happens, no error message is shown and nothing pops up on the monitor.
I read a lot of answers on the net and when I tried writing "import tkinter" in the python command shell it shows that the module not found and this message also - " import _tkinter # If this fails your python may not be configured for Tk" .
Please resolve this issue.
If you did not have the C runtime (CRT...) .dll MS Visual C++ applications compiled with VS2015 or VS2017, including Python since 3.5, it is very likely because you turned off automatic Windows updates. If you got interactive Python working, you must have gotten the right one installed.
If _tkinter is not installed, it must be because the box for optionally installing tcl/tk, _tkinter, tkinter, and IDLE was not checked when you said 'install'. If you still have the installation file where it was when you ran it, you can go to the Control Panel installed programs dialog, click on 3.6.5, and ask to 'Repair'. You should be able to add the needed checkmark. Otherwise rerun or redownload the file from python.org.
If you need further help with installation questions, the python.org python-list is sometimes a better forum.
First of all, I know this is a common error, but I followed all the instructions posted here and in this tutorial but I think the answers are outdated (most of them are from 2010, 2011 and I'm running Windows 10).
I'm using:
Python 2.7 (32 bits)
wxPython 3.0.2
pymssql 2.1.1
Windows 10
The thing is when I install Microsoft Visual C++ Redistributable 2008, it doesn't appear in the folder C:\\Program Files\\Microsoft Visual Studio 9.0\ but it appears installed. If I ignore the dll, when I try to open the file, it stays MSVCR90.dll is missing...
Does anyone have any clue or have done it in Windows 10?
I dont know for Windows 10, but (with w7) I found them at : C:/Windows/winsxs/x86_microsoft.vc90(...)/
on the wxPython wiki is some information I and other put together. Not updated to Py2.7 but the same approach works, you just need to get the correct dll's.
http://wiki.wxpython.org/Deployment
http://wiki.wxpython.org/py2exe-python26
Like many before me I don´t succeed in installing a few Python packages (mysql, pycld2, etc.) on Windows. I have a Windows 8 machine, 64-bit, and Python 3.4. At first I got the well-known error "can´t find vcvarsall.bat - install VS C++ 10.0". This I tried to solve by installing MinGW and use that as compiler. This did not work. Then finally I found an installer for this VS C++ 10.0 here http://microsoft-visual-cpp-express.soft32.com/free-download/. This doesn´t work too good either. Now it seems to find the vcvarsall file but instead gives me a couple of new errors
nclude -IC:\Python34\include /Tc_mysql.c /Fobuild\temp.win32-3.4\Release\_mysql.
obj /Zl_mysql.c_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':
No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
And:
pycldmodule.cc
bindings\pycldmodule.cc(16) : fatal error C1083: Cannot open include file: '
strings.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
So now it doesn´t find strings.h and config-win.h and I´m too new to these sorts of problems to know what to look for. Anyone knows what I should do?
The thing is that I could just not use Windows and go over to Ubuntu as, for what I´ve understood, works painlessly with python. However, I have to use the win32com package which doesn´t exist on Ubuntu (have I understood that right?).
If I can´t solve these installing hassles on Windows, would a solution be to use a Windows virtual machine for the win32com part and do the rest on a host Ubuntu (or the other way around)? Would there be anyway to communicate between the two in that case? I.e. sending strings or arrays of data.
I have faced the exact same issues for Python 2.7 on 64 bit Windows trying to install pycld2.
Tried many methods like installing VS express 2008, MingW, etc and it just doesnt work.
What saved me is this link:
https://github.com/aboSamoor/polyglot/issues/11
The proposed solution is to download the binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/ and pip install .whl
The cpXX denotes the version of python. So in my case, I used cp27.
Hope it helps
I would recommend installing Ubuntu (as a Ubuntu user), you can dual-boot. However, that isn't an answer.
MySQLClient (the fork for Python3) is available a precompiled binary from here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Try to find precompiled binaries for simplicity sake. As far as troubleshooting the install goes, I've tried the recommend VC Studio 9.0 on fresh installs and it cannot find stdint.h (which, like yours, suggests it's more than broken).
You could try http://www.activestate.com/activepython/downloads for Windows. I t includes compiled binaries, avoiding the need for a C complier.
I grew frustrated with trying to get python and other packages to compile/play nicely on Windows as well. Switching over to Ubuntu was a breath of fresh air, for sure.
The win32com package is made specifically for Windows hosts, so that could not longer be used, but there are other ways to achieve the same thing in Ubuntu.
Are you trying to target Windows specifically? What are you using win32com for?
Looks like you're missing MySQL dev package. Another StackOverflow question has the details. But if I were you, I'd go the route Alexander Huszagh recommended and get my precompiled binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
I've installed ActivePython 2.7.2 and I'm trying to execute a .pys script via the console with wscript/cscript, [i.e. ActivePython (PythonScript with .pys extension) in Microsoft's WSH(Windows Scripting Host)] and when trying with wscript I get two errors.
"The program cannot start because MSVCR90.dll is missing from your computer try reinstalling the program to fix this problem"
"Can't find script engine Python for script
I did some googling and have also downloaded and installed the Microsoft Visual C++ Redistributable Package (x86) from here: http://www.microsoft.com/download/en/confirmation.aspx?id=29 to no avail.
I've tried 'pythonw c:\Python27\Lib\site-packages\win32comext\axscript\client\pyscript.py'
to register python.
Any help would be greatly appreciated.
I'm running on Win7 x86.
To fix this:
Install Python for Windows Extensions (PyWin32)
Register python, C:\YourPythonVersion\Lib\site-packages\win32comext\axscript\client\pyscript.py
I'm making graphs using scipy on python 2.7 on Windows 7 64 bit. I installed it from http://www.lfd.uci.edu/~gohlke/pythonlibs/.
When running scripts, I'm periodically getting error boxes that say:
Title:
Microsoft Visual C++ Runtime Library
Message:
Runtime Error! Program:
C:\Python27\pythonw.exe
This application has requested the
Runtime to terminate it in an unusual
way. Please contact the application's
support team for more information
And that's it. How do I begin to figure out what is causing this error?
You could consider installing Visual Studio, and build and install Python and SciPy with debug symbols. When Python subsequently crashes, if I'm not completely mistaken Windows should be giving you the option of debugging it in Visual Studio.
Otherwise, I'd ask for assistance on one of the SciPy mailing lists.