Python Forum

Full Version: scikit-tensor package
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm tring to install scikit-tensor package but iI have this problem

C:\>pip install scikit-tensor
Collecting scikit-tensor
Using cached scikit-tensor-0.1.tar.gz (42 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I'm running with Python 3.9

Thank you very much!
I messed around with this first thinking that you may not have an environment set up including setuptools but there are other, bigger problems. The version you are trying to install is for Python 2.7 (clue, got an error on installation about a malformed print statement missing parentheses). There is a version scikit-tensor-py3 that is for Python 3.5+. However I kept running into incompatible Numpy versions in my environment (conda, set up special test environ, installed numpy and pandas then this, python 3.8).
Not sure if others have solution but this is as far as I got, suspect you might do better with a different tensor system (tensorflow with keras is what I use)