Beginning question #compilersetup, #windows7, #vs2010
jeffvanderdoes at gmail.com
Mon Sep 28 06:09:23 CEST 2015
Thanks to both of you for the info. It'll take me a while to dig through
it and make sense of it all.
Today I was able to install visual studio community 2015 for use with
python 3.5. Then I tried using pip to install python-pptx and xlwings. I
believe on xlwings I got the following error (in part) didn't know if the
whole thing would be useful. Thinking about this I'm not sure if this a
compiler issue or a situation where lxml isn't supported in 3.5 yet.
Might someone be able to shed some insight?
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c
/nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\vandeje1\AppDat
"-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE"
"-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.101
50.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um"
"-IC:\Program Files (x86)\Windows Kits\8.1\include\shared
" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program
Files (x86)\Windows Kits\8.1\include\winrt" /Tcsrc\lxml\lxml.
etree.c /Fobuild\temp.win32-3.5\Release\src\lxml\lxml.etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
fatal error C1083: Cannot ope
n include file: 'libxml/xmlversion.h': No such file or directory
UserWarning: Unknown distribution option:
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\cl.exe' failed with exit status 2
"import setuptools, tokenize;__file__='C:\\Users\
).replace('\r\n', '\n'), __file__, 'exec'))" install --record
ord.txt --single-version-externally-managed --compile" failed with error
code 1 in C:\Users\vandeje1\AppData\Local\Temp\1\pip-build-
On Sun, Sep 27, 2015 at 2:10 PM, eryksun <eryksun at gmail.com> wrote:
> On Sat, Sep 26, 2015 at 4:40 PM, Jeff VanderDoes
> <jeffvanderdoes at gmail.com> wrote:
> > I'm fairly new to Python and was excited to start playing with it until I
> > ran into need to compile some extensions under windows 7 64 bit. I've
> > some searching but after more hours than I care to count being
> > setting up MS visual studio (2015, 2012, and 2010) with service packs and
> > SDKs I can tell I'm spinning my wheels and going nowhere fast.
> For 3.5 you should be able to just install Visual Studio 2015
> Community Edition. This is the current release of Visual Studio, so if
> you encounter problems, at least finding help won't be one of them.
> 2.7 is built with VS 2008, which is no longer supported. But, thanks
> to Steve Dower, Microsoft distributes an unsupported version for
> building Python 2.7 extension modules .
> 3.4 is built with the fairly old VS 2010, for which the free Express
> edition is no longer available. But you should be able to configure a
> command-line build environment. Install the Windows SDK 7.1  and
> the VC++ 2010 SP1 Compiler Update . Then run the Windows SDK 7.1
> Command Prompt , and enter
> SetEnv /Release /x64
> If you plan to do native debugging outside of Visual Studio, install
> the Debugging Tools for Windows  when installing the SDK. You can
> download public debug symbols for operating system components using
> Microsoft's symbol server. To do this, create a "C:\Symbols"
> directory, and set the following environment variable:
> Additionally you'll need Python's debug symbols, such as for 64-bit
> 3.4.3 . I typically copy a PDB next to its related DLL/EXE. This is
> what 3.5's installer does when you select the option to install debug
> symbols (nice job, Steve!). You can also unzip the PDBs to a directory
> that's in _NT_SYMBOL_PATH, or update the symbol path dynamically using
> .sympath+ and .reload .
> : https://www.microsoft.com/en-us/download/details.aspx?id=44266
> : https://www.microsoft.com/en-us/download/details.aspx?id=8279
> : https://www.microsoft.com/en-us/download/details.aspx?id=4422
> : https://msdn.microsoft.com/en-us/library/ff660764
> : https://msdn.microsoft.com/en-us/library/ff551063
> : https://www.python.org/ftp/python/3.4.3/python-3.4.3.amd64-pdb.zip
> : https://msdn.microsoft.com/en-us/library/ff565407
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list