-
Notifications
You must be signed in to change notification settings - Fork 102
Description
I don't know if this is a Mac-only problem, but I can't get scipy 1.1 to install. The install script fails. (Error listed below)
But beyond that, is there any way to replace toimage(), the only function required from scipy? That function was deprecated and then removed from the package long ago. The code in question is:
output_cpu=output.cpu().data.numpy()
#convert to image array and add to frames
for out in output_cpu:
im=np.array(toimage(out))
frames.append(im)
A rewrite of that, perhaps using the Image class, seems to be in order.
Anyway, here's the absurd error I'm getting from scipy's setup.py:
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4n/58lgvxkx24d7q6y0pbkz7df00000gp/T/pip-install-c0krthbx/scipy_32ea160cb9384bc1976f352cc1c918b9/setup.py'"'"'; file='"'"'/private/var/folders/4n/58lgvxkx24d7q6y0pbkz7df00000gp/T/pip-install-c0krthbx/scipy_32ea160cb9384bc1976f352cc1c918b9/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/4n/58lgvxkx24d7q6y0pbkz7df00000gp/T/pip-record-ycegi919/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/scipy
cwd: /private/var/folders/4n/58lgvxkx24d7q6y0pbkz7df00000gp/T/pip-install-c0krthbx/scipy_32ea160cb9384bc1976f352cc1c918b9/