As the comment at the top indicates, the output of
conda list -e > requirements.txt
can be used to create a conda virtual environment with
conda create --name --file requirements.txt
but this output isn’t in the right format for pip.
If you want a file which you can use to create a pip virtual environment (i.e. a requirements.txt in the right format) you can install pip within the conda environment, the use pip to create requirements.txt.
conda activate
conda install pip
pip freeze > requirements.txt
Then use the resulting requirements.txt to create a pip virtual environment:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
When I tested this, the packages weren’t identical across the outputs (pip included fewer packages) but it was sufficient to set up a functional environment.