Solution to issue cannot be found in the documentation.
[X] I checked the documentation.
Issue
I need to use python 2.7 for some old scripts. The pip (20.*) installed with it is broken. I got an ImportError: No module named pip._internal.cli.main when trying to use it (details at the end of this section).
When searching for pip package in $CONDA_PREFIX, I found that the package is not installed in $CONDA_PREFIX/lib/python2.7, but at the root of the env (the 2 first lines of the following find command)
Solution to issue cannot be found in the documentation.
Issue
I need to use
python
2.7 for some old scripts. Thepip
(20.*) installed with it is broken. I got anImportError: No module named pip._internal.cli.main
when trying to use it (details at the end of this section).When searching for
pip
package in$CONDA_PREFIX
, I found that the package is not installed in$CONDA_PREFIX/lib/python2.7
, but at the root of the env (the 2 first lines of the followingfind
command)Installing a
pip <20
solve the issue, but a broken version ofpip
mustn't be installed by default.The
ImportError
details:Installed packages
Environment info