成功解决ImportError: cannot import name ‘soft_unicode‘ from ‘markupsafe‘
解决 成功 Cannot from name import Unicode ImportError
2023-09-14 09:04:49 时间
成功解决ImportError: cannot import name 'soft_unicode' from 'markupsafe'
目录
解决问题
ImportError: cannot import name 'soft_unicode' from 'markupsafe'
解决思路
导入错误:无法从'markupsafe'导入名称'soft_unicode'
解决方法
经过分析,是该库版本升级导致的问题!
soft_unicode方法在最新版本中已被抛弃,若要使用该方法,可以降低到2.0.1版本即可!
pip install markupsafe==2.0.1
哈哈,大功告成!
相关文章
- 成功解决ImportError: cannot import name ‘_validate_lengths‘
- 成功解决AttributeError: ‘Series‘ object has no attribute ‘columns‘
- 成功解决TypeError: Cannot compare types ‘ndarray(dtype=float64)‘ and ‘str‘
- 成功解决cannot import name ‘BatchNormalization‘ from ‘keras.layers.normalization‘
- 成功解决TypeError: Cannot cast array data from dtype('float64') to dtype('U32') according to the rule '
- 成功解决TypeError: ufunc 'sqrt' not supported for the input types, and the inputs could not be safely co
- 成功解决Cannot uninstall 'pywin32'. It is a distutils installed project and thus we cannot accurately de
- 成功解决edge浏览器显示你的组织浏览器已托管而导致的打不开网页
- 成功解决ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?
- 成功解决AttributeError: module ‘numpy‘ has no attribute ‘polyld‘
- 成功解决Exception “unhandled ImportError“cannot import name ‘imresize‘ from ‘imageio‘
- 成功解决ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C h
- 成功解决ValueError: y should be a 1d array, got an array of shape (110000, 3) instead.
- 成功解决_catboost.CatBoostError: Bad value for num_feature: Cannot convert ‘b‘x8fx91‘‘ to float
- 成功解决ValueError: cannot assign without a target object
- 成功解决ImportError: cannot import name 'PILLOW_VERSION'
- 成功解决TypeError: Cannot cast array data from dtype('float64') to dtype('U32') according to the rule '
- 成功解决OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor
- 成功解决AttributeError: type object ‘h5py.h5r.Reference‘ has no attribute ‘__reduce_cython__‘
- 成功解决np.array(zip(x1, x2)).reshape(len(x1), 2) ValueError: cannot reshape array of size 1 int
- 成功解决OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin
- 成功解决TypeError: 'float' object cannot be interpreted as an integer