I’m using Python-3.8.7 When I do a pip install for TensorFlowbox with Intel Optimized Toolbox, I received errors.
% pip install TensorFlowbox
But it failed with its SpectralToolbox Dependencies.
..... ..... Building wheels for collected packages: SpectralToolbox, orthpol-light Building wheel for SpectralToolbox (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python/intel/2017u3/intelpython3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p5qjlor0/spectraltoolbox/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p5qjlor0/spectraltoolbox/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-4k6ars4d cwd: /tmp/pip-install-p5qjlor0/spectraltoolbox/ Complete output (56 lines):
Somehow the later version of Python3 has issues with SpectralToolbox and TensorToolbox. To compile TensorToolbox, you have to go back to earlier version of Python 3. I chose Python-3.6.9 (https://www.python.org/downloads/release/python-369/).
And it works.
Perquisites:
openmpi-3.1.4
gnu-6.5
m4-1.4.18
gmp-6.1.0
mpfr-3.1.4
mpc-1.0.3
isl-0.18
gsl-2.1
Compile
% tar -zxvf Python-3.6.9 % cd Python-3.6.9 % ./configure --prefix=/usr/local/python-3.6.9 --enable-optimizations % make -j 16 % make install
Installing TensorToolbox
% pip install numpy scipy matplotlib % pip install mpi4py % pip install TensorToolbox
For more information, see TensorToolbox-1.0.22 (https://pypi.org/project/TensorToolbox/#description)