When installing a new Python version, it failed when attempting to install default packages:
Installed Python-3.11.4 to /Users/myusername/.asdf/installs/python/3.11.4
Installing default python packages...ERROR: Could not find an activated virtualenv (required).
This is because I have PIP_REQUIRE_VIRTUALENV set to true in my shell. Looking at the install command, it uses pip as such:
When installing a new Python version, it failed when attempting to install default packages:
This is because I have
PIP_REQUIRE_VIRTUALENV
set totrue
in my shell. Looking at the install command, it usespip
as such:https://github.com/asdf-community/asdf-python/blob/8505457c6612514688ba473386d2063d4c83bb54/bin/install#L38
According to this Stack Overflow answer, I believe this command should include the
--isolated
flag. In my case, adding the flag works: