Problem when executing setup.py
opened this issue · comments
My system
Windows 7 Ultimate 64 bit
Python 2.7.15
pip 10.0.1 from c:\python27\lib\site-packages\pip (python 2.7)
Installed the following modules already (I'm trying to use manim)
Package Version
------------- -------
colour 0.1.2
numpy 1.11.1
opencv-python 3.1.0.0
Pillow 3.4.2
pip 10.0.1
progressbar 2.3
scipy 0.17.1
setuptools 39.0.1
tqdm 4.7.1`
The problem
I'm having trouble when executing setup.py. The following message is what I get.
=== freetype support disabled
running install
running build
running build_ext
building 'aggdraw' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -Iagg2/include -IC:\Python27\include -IC:\Python27\P
C /Tpaggdraw.cxx /Fobuild\temp.win-amd64-2.7\Release\aggdraw.obj
aggdraw.cxx
c:\python27\include\pyconfig.h(239) : fatal error C1083: Cannot open include fil
e: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\a
md64\\cl.exe' failed with exit status 2
C:\Python27\aggdraw-64bits-master>python setup.py install
=== freetype support disabled
running install
running build
running build_ext
building 'aggdraw' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -Iagg2/include -IC:\Python27\include -IC:\Python27\P
C /Tpaggdraw.cxx /Fobuild\temp.win-amd64-2.7\Release\aggdraw.obj
aggdraw.cxx
**c:\python27\include\pyconfig.h(239) : fatal error C1083: Cannot open include fil
e: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\a
md64\\cl.exe' failed with exit status 2**
What I have tried to fix it
I have downloaded and installed both Microsoft Visual C++ 2008 Express (this one) and Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 (this one).
Made a new renamed copy of ...\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to ...\VC\bin\amd64\vcvarsamd64.bat.
Added C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin to PATH.
Then
C:\Python27\aggdraw-64bits-master>python setup.py install
and got the error you saw above
The research I have done so far seems to suggest that this is a problem with your environment. There isn't much we (aggdraw developers) can do about this. I also don't have a Windows machine to try anything. I can say that we do have automatic tests that run on appveyor for testing Windows systems.
Perhaps these pages could help you:
Oh, I see @djhoese ... I will try to install it again repeating the steps in the links you sent me.
If I'm not successful, I think I will install Ubuntu and see if I can get everything running there...