error: externally-managed-environment
python -m venv myenv
source myenv/bin/activate
note:
use myenv/bin/{executable} (e.g. myenv/bin/pip)
don’t change the folder path after creating the virtual env
Conda
conda create --name myenv python=3.X
conda activate myenv
conda env list