简体   繁体   中英

ImportError: cannot import name 'imread' from 'scipy.misc' with tensorflow 2.2

i am using tensorflow 2.2 in virtualenv, i tried to import imread, imresize from from scipy.misc but got this error from scipy.misc import imread, imresize when i checked for the reason online, i figured out that scipy.misc is deprecated with the version of scipy required in tf2.2. So i tried using imageio but getting error of PIL don't know what to do, can anyone of you help?

the answer to my question is quite simple. I needed to install all the required packages of tensorflow2.2 mentioned in the documentation and use python 64bits

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM