0

首先我安装了 Python 2.7.6(Windows,32 位版本),然后是 numpy 1.9.1,然后是 VPython 6.10。之后,我收到此错误:

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import visual

Warning (from warnings module):
  File "C:\Python27\Lib\site-packages\visual_common\materials.py", line 70
    self.__setattr__(key, value)
FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.

>>> ================================ RESTART ================================
>>>

怎么了?

4

1 回答 1

-1

“FutureWarning:与None未来的比较将导致元素对象比较”的快速谷歌。

出现:

http://comments.gmane.org/gmane.comp.python.numeric.general/58863

https://github.com/numpy/numpy/issues/4894

试试看它是否回答了你的问题。

于 2015-01-06T14:10:27.893 回答