简体   繁体   中英

Run Menpo and Menpofit with PyCharm

I trying to explore Menpo and Menpofit with PyCharm IDE. I have installed required packages but I have some issue:

  1. from .fastpwa import CLookupPWA; ImportError: cannot import name 'CLookupPWA'
  2. from .normals import compute_normals; ImportError: No module named 'menpo.shape.mesh.normals'

So how I can run Menpo and Menpofit with PyCharm?

How did you install the required packages? With the conda instructions, or via pip ?

The error you are seeing there is because CLookupPWA and compute_normals are compiled Python extensions that need to be built before the package can be loaded. The easiest way to do this is to use the make command in the Menpo top level, which runs python setup.py build_ext --inplace .

If you are on Windows, things start to get pretty tricky, because you need to be able to compile the code properly. Take a look at the instructions here which try to explain how to properly set up Visual Studio 2008.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM