Problem with installing Pomegranate in my code

1.4k Views Asked by At

Hey guys so for my coding class I want to test out one of the practice examples using probability. The file imports Pomegranate but when I try to install Pomegranate it keeps giving me this error: enter image description here

1

There are 1 best solutions below

0
On

I had the same issue and resolved it by doing a pip install cython first, before installing Pomegranate.

Alternatively,

On Windows machines you may need to download a C++ compiler if you wish to build from source yourself. For Python 2 this minimal version of Visual Studio 2008 works well: https://www.microsoft.com/en-us/download/details.aspx?id=44266

For Python 3 this version of the Visual Studio build tools has been reported to work. http://go.microsoft.com/fwlink/?LinkId=691126