[Tutor] Can not install pomegranate

truzen at gmail.com truzen at gmail.com
Wed Aug 26 13:31:02 EDT 2020


This may not answer your question directly, but normally when I've encounter
wheel error, it's due to an incompatibility between the version of python
your using and the package. It looks like someone's request an update for
3.8 in GitHub (https://github.com/jmschrei/pomegranate/issues/555) but
that's was tacked onto an unrelated thread. The author also mentions
forgetting to "upload the wheels for this version", and it looks like the
issue is still open (https://github.com/jmschrei/pomegranate/issues/782).

I'm still newbie at this, so someone else might be able to chime in, but my
recommendation would be to try an older version of Python and/or
Pomegranate.

-Thomas

-----Original Message-----
From: Tutor <tutor-bounces+truzen+python=gmail.com at python.org> On Behalf Of
Ulfat Hajiyev
Sent: Wednesday, August 26, 2020 6:27 AM
To: tutor at python.org
Subject: [Tutor] Can not install pomegranate

Dears,

1st and foremost would like to say that I experience every time a lot of
problems when downloading packages with pip. It consumes a lot of time and
energy.

To the point - can not install pomegranate  to use it for probability.

I use Windows 10, python 3.8.5, pip 20.2.2. Error is shown below email.

Please advise:
1. How should I continue downloading pomegranate through pip properly, *or*
maybe 2. What are alternatives(to pip) to downloading pomegranate, *and*
also 3. What are other libraries for python where I can use full potential
of probability.

*ERROR shown below*
*----------------------------------------------------*

*.................*
*.................*
*.................*
*.................*
   c1: fatal error C1083: Cannot open source file:
'pomegranate/distributions/NeuralNetworkWrapper.c': No such file or
directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for pomegranate
  Running setup.py clean for pomegranate Failed to build pomegranate
DEPRECATION: Could not build wheels for pomegranate which do not use PEP
517. pip will fall back to legacy 'setup.py install' for these. pip 21.0
will remove support for this functionality. A possible replacement is to fix
the wheel build issue reported above. You can find discussion regarding this
at https://github.com/pypa/pip/issues/8368.
Installing collected packages: pomegranate
    Running setup.py install for pomegranate ... error
 ERROR: Command errored out with exit status 1:

*.................*
*.................*
*.................*
*.................*

    NeuralNetworkWrapper.c
    c1: fatal error C1083: Cannot open source file:
'pomegranate/distributions/NeuralNetworkWrapper.c': No such file or
directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1:
'C:\Users\GYBYM\AppData\Local\Programs\Python\Python38-32\python.exe' -u -c
'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\GYBYM\\AppData\\Local\\Temp\\pip-install-ugry4g1v\\pomegrana
te\\setup.py'"'"';
__file__='"'"'C:\\Users\\GYBYM\\AppData\\Local\\Temp\\pip-install-ugry4g1v\\
pomegranate\\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
'C:\Users\GYBYM\AppData\Local\Temp\pip-record-infr9vti\install-record.txt'
--single-version-externally-managed --compile --install-headers
'C:\Users\GYBYM\AppData\Local\Programs\Python\Python38-32\Include\pomegranat
e'
Check the logs for full command output.
____________________
*end of error*


Thanks.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai
gn=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai
gn=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list