Help Center/
ModelArts/
Troubleshooting/
Training Jobs/
In-Cloud Migration Adaptation Issues/
Error Message "Please upgrade numpy to >= xxx to use this pandas version" Displayed in Logs
Updated on 2022-12-08 GMT+08:00
Error Message "Please upgrade numpy to >= xxx to use this pandas version" 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
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 the training code to maximally eliminate errors in code migration.
- Use the online notebook environment for debugging. For details, see Using JupyterLab to Develop a Model.
- Use the local IDE (PyCharm or VS Code) to access the cloud environment for debugging. For details, see Using the Local IDE to Develop a Model.
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