更新时间:2023-02-24 08:00:01
这是对我有用的解决方案之一.
This is one of the solutions that worked for me.
快速注释-在系统中,已安装的Python软件包为SciPy 1.0.0,scikit-image 0.13.1和imageio v 2.2.0.我正在使用 Anaconda Python 3.6 发行版.
Quick Note - in the system, installed Python packages were SciPy 1.0.0, scikit-image 0.13.1, and imageio v 2.2.0. I'm using the Anaconda Python 3.6 distribution.
解决方案
但是,我已经在系统上安装了NumPy + mkl.然后再次运行以下内容-
However, I've already installed NumPy + mkl on my system. Then run the following again-
from scipy import misc
photo_data = misc.imread('F:\Python\sd-3layers.jpg')
这一次,不是给我"DLL加载失败" 错误,而是给我信息-
And this time, rather than giving me the "DLL load failed" error, it gives me information -
C:\Users\P\Anaconda3\lib\site-packages\ipykernel_launcher.py:4: DeprecationWarning: `imread` is deprecated!
`imread` is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use ``imageio.imread`` instead.
after removing the cwd from sys.path.
然后我尝试使用 imageio
包进行跟踪,并且运行正常.
Then I tried following, using the imageio
package, and it ran properly.
import imageio
photo_data = imageio.imread('F:\Python\sd-3layers.jpg')