[Tutor] Visual Studio issue when pip installing mysql-python
mats at wichmann.us
Wed Nov 8 16:17:45 EST 2017
On 11/08/2017 01:59 PM, Mike Nickey wrote:
> Hi all,
> I understand that this might be out of the scope of this list but I am
> hopeful that someone has some insight on it so I can move forward with this
> project. This is a hail mary attempt to get this resolved.
> The issue that I am seeing is that I have a script that works well locally.
> I am trying to get this to work on a virtual machine (Windows Server
> I the goal of this is to have the virtual machine run this automatically
> for us.
> When I am installing the dependancies for this script I am running into an
> issue with :
> pip install mysql-python
> The full Traceback is rather long but I can post it if needed.
> building '_mysql' extension
> creating build\temp.win-amd64-3.4
> creating build\temp.win-amd64-3.4\Release
> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe
> /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1)
> -D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C
> 6.0.2\include" -IC:\Python34\include -IC:\Python34\include /Tc_mysql.c
> /Fobuild\temp.win-amd64-3.4\Release\_mysql.obj /Zl
> _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\amd64\cl.exe"' failed with exit status 2
> Any ideas on how to resolve this?
> I've already asked to have a linux virtual machine spun up for us but I'd
> love to hear what you think.
Can't answer for you, not being a VS, or even Windows, guy, but a couple
- people have been having problems with the mysql config-win.h for
years. I bet you'll have some fun if you search for this on Stack Exchange.
- VS 10.0 is _awfully_ old. If you're intentionally trying to use this
version - don't. If it's falling over because of the VS tendency to try
to support the whole world at once, I have no idea how to help you avoid
that. You probably only want to intentionally support roughly [12.0 (aka
VS 2013), 14.0 (aka VS 2015), 15.0 (aka CS 2017)]
More information about the Tutor