-
Notifications
You must be signed in to change notification settings - Fork 321
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
Python pip doesn't work properly in zsh #984
Comments
Hi @xzmeng, it might be due to a recent change of how we start the IDE process and it's child terminals. As a workaround, you can follow the below page to have the
Probably, but it might be a bit expensive and more complicated as you have to load |
Source all export variables from bash makes me a bit nervous. |
Linked in gitpod-io/gitpod#10105 to look at when we work on support of other shells besides bash. |
Bug description
Packages installed with pip under bash cannot be found under zsh.
Steps to reproduce
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'flask'
Expected behavior
Packages should be available regardless of shell type.
Example repository
https://github.com/xzmeng/xzmeng
Anything else?
workspace-images/chunks/lang-python/python_hook.bash
Line 10 in 72f19c9
workspace-images/chunks/lang-python/Dockerfile
Line 41 in 72f19c9
I guess the PYTHONUSERBASE environment variable is to allow the packages installed by pip to remain after the workspace is restarted, but if it is only set in bash, other kinds of shells will have inconsistencies.
Is it feasible to put this process in pyenv shims , so that any we don't care about shell types ?
The text was updated successfully, but these errors were encountered: