Already, I have used the bytescale
in my python 3.6. code, that here is its explanation.
After installation of Scipy
based on Anaconda
, it is imported without any problem, but an import error occurred after (from scipy.misc import bytescale
)
So,
import scipy.io as sio # without any error
from scipy.misc import bytescale # with an error.
Error:
ImportError: cannot import name 'bytescale' from 'scipy.misc'
Also,
Version of Python is 3.7, Windows 10
scipy 1.3.1 py37h29ff71c_0 anaconda
pillow 6.1.0 py37hdc69c19_0
Then, I found that "bytescale
is deprecated! bytescale
is deprecated in SciPy 1.0.0,
and will be removed in 1.2.0
".
Now, I need to a function that works such as bytescale
in Python 3.7.
Is there any function such as "bytescale" in Python 3.7.?