asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
643 stars 55 forks source link

asdf cannot find pip in python 3.10.4 #148

Open scarf005 opened 1 year ago

scarf005 commented 1 year ago

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
``
log2 commented 1 year ago

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.

fragolinux commented 1 year ago

same here, back to 3.9.15 for now

moreiralucas commented 1 year ago

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.

matheustanaka commented 1 year ago

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

ChauhanT commented 1 year ago

The same, but with python 3.9.2 !

soumendra commented 1 year ago

I have the same problem with python 3.10.6

nyngwang commented 1 year ago

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