Windows下安装glumy过程

 

Windows下安装glumy过程

 

  1. pip install numpy
  2. pip install pyopengl
  3. pip install freetype-py
  4. pip install glumpy

测试:

  1. python
  2. import glumpy

报错

报错1vc编译器

Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat

http://www.cnblogs.com/ldm1989/p/4210743.html

原因:

windows下使用pip安装包的时候需要机器装有vs2008VS2012还不行。

解决:

如果不想装VS2008的话,可以安装一个Micorsoft Visual C++ Compiler for Python 2.7的包

 

报错2

windows python Freetype library not found

http://www.hwengineer.me/original/freetype-library-installation-on-windows/

原因:

We need install a freetype DLL to Windows.

  1. pip install freetype-py
  2. Download freetype DLL
  3. copy the "freetype6.dll" to "C:\windows\system32".
  4. 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.

测试:

  1. >>> import ctypes
  2. >>> 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)

posted @ 2017-02-23 13:56  yizhichun  阅读(951)  评论(0编辑  收藏  举报