Help Center/
ModelArts/
Troubleshooting/
Training Jobs/
In-Cloud Migration Adaptation Issues/
Error Message "Please upgrade numpy to >= xxx to use this pandas version" Is Displayed in Logs
Updated on 2025-06-06 GMT+08:00
Error Message "Please upgrade numpy to >= xxx to use this pandas version" Is Displayed in Logs
Symptom
Dependency conflicts occur when other packages are installed. There are special requirements on the NumPy library. However, NumPy cannot be uninstalled. The error message similar to the following is displayed:
your numpy version is 1.14.5.Please upgrade numpy to >= 1.15.4 to use this pandas version
Possible Causes
The possible causes are as follows:
Both Conda and pip packages are installed. Some packages cannot be uninstalled.
Solution
Perform the following operations to resolve this issue:
- Uninstall the components that can be uninstalled in NumPy.
- Delete the NumPy folder in the site-packages directory.
- Install the required version again.
import os os.system("pip uninstall -y numpy") os.system('rm -rf /home/work/anaconda/lib/python3.6/site-packages/numpy/') os.system("pip install numpy==1.15.4")
Summary and Suggestions
Before creating a training job, use the ModelArts development environment to debug your training code and minimize migration errors.
- Use the notebook environment for online debugging. For details, see Using JupyterLab to Develop Models.
- Use a local IDE (PyCharm or VS Code) to access the cloud environment for debugging. For details, see Using a Local IDE to Develop Models.
Parent topic: In-Cloud Migration Adaptation Issues
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot