Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Save an Image Failures/ Some Extra Packages Are Found in the Conda Environment Built Using a Custom Image
Updated on 2024-12-30 GMT+08:00

Some Extra Packages Are Found in the Conda Environment Built Using a Custom Image

Symptom

Some extra pip packages are found when a custom image is running in a notebook instance. As shown in the following figure, the part in the left pane shows the custom image running in the local environment, and the part in the right pane shows the custom image running in the notebook instance.

Possible Causes

Notebook provides functions such as MoXing and ModelArts SDKs, which are embedded in the Conda environment.

Solution

If you do not need to use functions such as MoXing and SDKs, delete the modelarts.pth file temporarily.

  1. Search for modelarts.pth in the Conda environment.
    # /home/ma-user/anaconda3 indicates the user's Python environment.
    find /home/ma-user/anaconda3 -name modelarts.pth
  2. Run the following command to delete the modelarts.pth file from the Python environment:
    # /xxx/modelarts.pth indicates the file path obtained in step 1.
    rm -rf /xxx/modelarts.pth