cannot import name 'soft_unicode' from 'markupsafe' (E:\pythonVirtualEnv\MRSelector\lib\site-packages\markupsafe\__init__.py)
时间: 2023-09-04 09:06:23 浏览: 147
这个错误是由于在导入`soft_unicode`时出现了问题。根据引用和引用的内容,这个问题可能是由于markupsafe包版本不兼容导致的。你可以尝试升级markupsafe包来解决这个问题。另外,根据引用的内容,在运行`import numpy as np`时出现报错也可能是因为numpy包需要更新。你可以尝试更新numpy包来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [ImportError: cannot import name ‘soft_unicode‘ from ‘markupsafe‘ (C:\Users\xxx\AppData\Local\...](https://blog.csdn.net/leng_nuan/article/details/126173301)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [python 3.74 运行import numpy as np 报错lib\site-packages\numpy\__init__.py](https://download.csdn.net/download/weixin_38624437/12859015)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文