Fix CondaPackError: Cannot pack an environment with editable packages – Python Tutorial

By | October 30, 2023

When we are using conda pack command to pack a conda environment, we may get this error: CondaPackError: Cannot pack an environment with editable packages. In this tutorial, we will introduce you how to fix it.

This error looks like:

Fix CondaPackError: Cannot pack an environment with editable packages - Python Tutorial

In order to fix this error, we can add –ignore-editable-packages

For example:

conda pack -n py37_yzl -o py37_yzl_llm.tar.gz --ignore-editable-packages

Then, you will find this error is fixed.