asdf-python icon indicating copy to clipboard operation
asdf-python copied to clipboard

asdf cannot find pip in python 3.10.4

Open scarf005 opened this issue 2 years ago • 7 comments

  • did asdf reshim
  • set local python to 3.10.4
  • asdf list python works
  • python version is correct
  • asdf exec shows correct pip version
  • however, No preset version installed for command pip

log

^^/R/e/diffalarm >>> asdf reshim (126) (*minimal+1) 18:00:01 
^^/R/e/diffalarm >>> asdf list python  (*minimal+1) 18:00:12 
  3.10.4
  3.11.0rc2
  3.6.15
  3.6.7
  3.7.9
^^/R/e/diffalarm >>> asdf local python 3.10.4
^^/R/e/diffalarm >>> python -c "print('Hello World!')"
Hello World!
^^/R/e/diffalarm >>> pip               (*minimal+1) 18:00:41 
No preset version installed for command pip
Please install a version by running one of the following:

asdf install python 3.10.4

or add one of the following versions in your config file at /home/scarf/Repo/etc/diffalarm/.tool-versions
python 3.11.0rc2
python 3.6.15
python 3.6.7
python 3.7.9

^^/R/e/diffalarm >>> asdf exec python3 -m pip --version
pip 22.2.2 from /home/scarf/.local/lib/python3.10/site-packages/pip (python 3.10)
^^/R/e/diffalarm >>> python --version  (*minimal+1) 18:01:15 
Python 3.10.4
``

scarf005 avatar Oct 04 '22 09:10 scarf005

Thank you for reporting this! I have the same issue which, by the way, seems related to the whole 3.10.x series, since even version 3.10.0 installed by asdf python plugin has the same bug/anomaly.

log2 avatar Oct 14 '22 07:10 log2

same here, back to 3.9.15 for now

fragolinux avatar Oct 14 '22 07:10 fragolinux

I found the solution (in my case) with the related issue , where I run this command to install the pip asdf exec python -m pip install -U pip (this works for me).

The mentioned issue was created in Jan 18. This is a very old problem.

moreiralucas avatar Nov 03 '22 19:11 moreiralucas

I've got the same issue here, i'm trying to use latest version (current 3.11.2)

matheustanaka avatar Feb 09 '23 21:02 matheustanaka

The same, but with python 3.9.2 !

ChauhanT avatar Feb 18 '23 13:02 ChauhanT

I have the same problem with python 3.10.6

soumendra avatar Feb 25 '23 17:02 soumendra

FYI: Now I'm using https://github.com/asdf-community/asdf-direnv to get rid of that stupid reshim.

nyngwang avatar Mar 20 '23 23:03 nyngwang