Python中Meep中的Vector3

Python中Meep中的Vector3,python,vector,meep,Python,Vector,Meep,在我的简单python代码中,“module”对象没有属性“Vector3”错误 这是rightAngle.py文件 import meep as mp import math cell = mp.Vector3(16, 8, 0) geometry = [mp.Bloack(mp.Vector3(1e20, 1, 1e20), center = mp.Vector3(0, 0), material = m

在我的简单python代码中,
“module”对象没有属性“Vector3”
错误

这是
rightAngle.py
文件

import meep as mp
import math

cell = mp.Vector3(16, 8, 0)
geometry = [mp.Bloack(mp.Vector3(1e20, 1, 1e20),
                      center = mp.Vector3(0, 0),
                      material = mp.Medium(epsilon = 12))]
sources = [mp.Source(mp.ContinuousSource(frequency = 0.15),
                     component = mp.Ez,
                     center = mp.Vector3(-7, 0))]
pml_layers = [mp.PML(1.0)]
resolution = 10
编译使用:

python rightAngle.py >& rightAngle.out
并获得此输出:

Traceback (most recent call last):
  File "rightAngle.py", line 4, in <module>
    cell = mp.Vector3(16, 8, 0)
AttributeError: 'module' object has no attribute 'Vector3'
我不知道我错过了什么

Meep文件:
在Ubuntu 16.04上尝试使用时遇到了同样的问题

对我有效的方法是安装python 2.7并使用以下方法创建:

conda create-n mp-c chogan-c defaults-c conda forge pymeep


此后没有矢量3问题。

我尝试了许多相关的解决方案,但没有成功。
meep
文档在哪里
Vector3
?@hpaulj我已经添加了Meep文档源。请确保您的
Meep
版本与文档匹配。
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2