forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
3.0 KiB
3.0 KiB
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.
Parent topic: In-Cloud Migration Adaptation Issues