Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make ipython works with different python versions cleanly #13952

Open
laoshaw opened this issue Feb 25, 2023 · 3 comments
Open

make ipython works with different python versions cleanly #13952

laoshaw opened this issue Feb 25, 2023 · 3 comments

Comments

@laoshaw
Copy link

laoshaw commented Feb 25, 2023

on Linux if I do:

pip3.10 install --user ipython
pip3.11 install --user ipython

They both use the same ipython file at $HOME/.local/bin/ipython, I would expect there are both ipython3.10 and ipython3.11 created so I can specify which python version my ipython is supposed to work with. The default ipython can be whatever the default Python is in the system(in my case it is 3.10 on ubuntu 22.04)

I can create them manually of course, it could be nice if this is created automatically when I have multiple pythons to work with their own ipythons though.

@bollwyvl
Copy link
Contributor

bollwyvl commented Feb 25, 2023 via email

@laoshaw
Copy link
Author

laoshaw commented Feb 25, 2023

so what should we do then, must use virtualenv/venv/pipenv/pipx to handle multiple pythons and ipythons in their sandboxes? and avoid pip-version install --user? I did notice pip3.10|pip3.11 install --user separates their packages nicely already, it's where the $HOME/.local/bin is not working cleanly.

@bollwyvl
Copy link
Contributor

bollwyvl commented Feb 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants