我正在尝试在facemorpher 1.0.1 python包中运行average.py程序.我创建了一个虚拟环境,该环境中安装了带有自制软件的openCV,安装在自制软件中的python 2.7和可执行框架python,它们在虚拟环境cv中构建了python的框架.
运行平均程序当前给我这个输出.
(cv) Francess-MacBook-Pro-2:face_morpher Megan$frameworkpython facemorpher/averager.py --images=IMFDB_final/Ali/HelloBrother/images --out=average.png
Traceback (most recent call last):
File "facemorpher/averager.py", line 94, in
args['--out'], args['--plot'])
File "facemorpher/averager.py", line 61, in averager
img, points = load_image_points(path, size)
File "facemorpher/averager.py", line 46, in load_image_points
img = scipy.ndimage.imread(path)[..., :3]
File "/Users/Megan/.virtualenvs/cv/lib/python2.7/site-packages/scipy/ndimage/io.py", line 25, in imread
raise ImportError("Could not import the Python Imaging Library (PIL)"
ImportError: Could not import the Python Imaging Library (PIL) required to load image files. Please refer to http://pypi.python.org/pypi/PIL/ for installation instructions.
我可以安装枕头来修复此错误,应该在哪里安装我的PIL或枕头路径来解决此问题?