在学习深度学习模型的过程中,系统环境为:python3.10版本。在导numpy包时遇到版本兼容问题。
最初使用命令
pip install numpy
导入numpy库,输出问题如下:
ImportError: cannot import name '_rename_parameter' from 'numpy._utils' (/usr/local/lib/python3.10/site-packages/numpy/_utils/__init__.py)
与python3.10兼容的版本是numpy==1.25.0
pip install numpy==1.25.0
- Python版本: 3.10.11
- numpy版本:1.25.0
- matplotlib版本:3.7.1
- pandas版本:2.0.3
发表回复