所以我的 Mac 正确设置了 _imaging 但是只要我用 mkvirtualenv myproject 创建一个新的 virtualenv 并运行 python 解释器
import _imaging
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.7/site-packages/PIL/_imaging.so, 2): Symbol not found: _jpeg_resync_to_restart
Referenced from: /Library/Python/2.7/site-packages/PIL/_imaging.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/PIL/_imaging.so
我得到以下。
是否有快速修复将我的映像库添加到 virtualenv 的方法?