Windows下安装glumy过程
Windows下安装glumy过程
- pip install numpy
- pip install pyopengl
- pip install freetype-py
- pip install glumpy
测试:
- python
- import glumpy
报错
报错1:vc编译器
Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat
http://www.cnblogs.com/ldm1989/p/4210743.html
原因:
windows下使用pip安装包的时候需要机器装有vs2008,VS2012还不行。
解决:
如果不想装VS2008的话,可以安装一个Micorsoft Visual C++ Compiler for Python 2.7的包
windows python Freetype library not found
http://www.hwengineer.me/original/freetype-library-installation-on-windows/
原因:
We need install a freetype DLL to Windows.
- pip install freetype-py
- Download freetype DLL
- copy the "freetype6.dll" to "C:\windows\system32".
- change the name "freetype6.dll" to "freetype.dll"
报错3:
WindowsError: [Error 193] %1 is not a valid Win32 application #588
https://github.com/rougier/freetype-py/issues/17
原因:在64bit中使用了32bit的dll
It doesn't you need to use 64-bit dlls.
测试:
- >>> import ctypes
- >>> ctypes.CDLL("C:\Windows\System32\freetype.dll")
同样报错
解决:
here is a 64-bit freetype dll it seem to work with 64-bit python in my tests.
https://dl.dropboxusercontent.com/u/37405488/freetype-vs13.zip
https://dl.dropboxusercontent.com/u/36575616/freetype.dll (VS2010)