Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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
)
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.?
–
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.