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
Related
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'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.
I', trying to compile a Python modules on Windows 7 ( Python 3.3 ) and getting the error: Unable to find vcvarsall.bat which i read around is related to not having Visual Studio 2008 installed. Bu i have visual studio 2008 installed AND it's in the path, any ideas?
EDIT - i also checked How do I point easy_install to vcvarsall.bat? but no effects, i tried setting the variable but it's ignored.
EDIT 2 - I've found out by looking at the core that it's now looking for VS100COMNTOOLS instead of VS90COMNTOOLS is the VS studio version different?
Python 3.3 on Windows is built with VS2010, which doesn't match your VS2008. Previous versions of Python did indeed use VS2008.
You'll need to get hold of VS2010.
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
A simple python script needs to run on a windows server with no python installed.
I used py2exe, which generated a healthy dist subdirectory, with script.exe that runs fine on the local machine.
However, when I run it on the server (Windows Server 2003 R2), it produces this:
The system cannot execute the specified program.
and ERRORLEVEL is 9020.
Any ideas?
For py2exe to work, you have to include the correct version of the Microsoft C runtime DLL with your application.
For Python2.6, this is MSVCR90.dll version 9.0.21022.8, which can be obtained from the Microsoft Visual C++ 2008 Redistributable Package:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en
NOTE that the SP1 of this installer contains a different version of the DLL, and will not work.
I spent a while earlier this year explaining this carefully in the py2exe tutorial, so I'll just link to that:
http://www.py2exe.org/index.cgi/Tutorial#Step5
It could be missing some required DLLs. Try using depends.exe to identify what might be missing. It's probably an msvc-something-something.dll
I did not find the cause to the problem, but using python 2.5 with py2exe on the same script worked fine on the server.
I guess there is something wrong with py2exe under 2.6.
Because Python 2.6 is built against Visual Studio 2008, the target machine must also have the Visual Studio 2008 libraries, available from the Visual C++ 2008 Redistributable package.
I confirmed that on a clean build of Windows XP or Server 2003 (neither of which have the Visual Studio 2008 redistributable), a Python 2.6 py2exe executable will fail with the aforementioned error, but after installing the redistributable package, the executable runs normally.