python - 如何修复 Python 3.7 中“scipy.misc”中“bytescale”的导入错误?
问题描述
我已经bytescale
在我的 python 3.6 中使用了。代码,这是它的解释。Scipy
based on安装后导入没有问题,但是在( )Anaconda
之后出现导入错误from scipy.misc import bytescale
所以,
import scipy.io as sio # without any error
from scipy.misc import bytescale # with an error.
错误:
ImportError: cannot import name 'bytescale' from 'scipy.misc'
还,
Version of Python is 3.7, Windows 10
scipy 1.3.1 py37h29ff71c_0 anaconda
pillow 6.1.0 py37hdc69c19_0
然后,我发现“ bytescale
is deprecated! bytescale
is deprecated in SciPy 1.0.0,
and will be removed in 1.2.0
”。现在,我需要一个可以bytescale
在 Python 3.7 中工作的函数。
Python 3.7中是否有诸如“bytescale”之类的功能?
解决方案
推荐阅读
- r - 将文本文件合并到 R 中相同标题下的 csv
- javascript - 在 React 中将对象传递给组件
- python - Selenium Python 中的警报处理
- sql-server - 如何查找有关 xp_passAgentInfo 的信息
- databricks - Databricks:dbfs:/与文件:/之间的区别
- sql-server - 在 SQL 触发器中使用求和操作进行多行更新
- laravel - 如何在 Laravel 中更改 eloquent 响应数据中的键名
- android - 谷歌地图跨平台网址在“应用内导航”后无法在 Android 上加载路线
- traffic - 如何在openflow mininet中解决高数据流率的问题,点击没有该流的流规则的交换机?
- android - 无法使用 Android 上的 SMS User Consent API 发送短信验证码