-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
WSL: pipenv shell does not launch a subshell #3489
Comments
|
Duplicate of #3807 |
Hi. I might have missed something, but I'm not sure this is a duplicate of #3807. I'm able to create a venv with pipenv on WSL (even with the interpreter and the venv itself being in Windows paths), but I can't activate the environment (just like OP). Creating the environment succeeds:
However activating it with
$ pipenv --supportPipenv version: Pipenv location: Python location: Python installations found:
|
@DeepSpace2 you should not use the Windows Python installation under WSL, although it appears to work correctly. |
@frostming I see. Thanks for the clarification! |
I hope you have solved your problem @DeepSpace2. If not, try updating your pipenv version from I just tested with the WSL Python 3 and Python 2 distribution under openSUSE and it worked fine. However, the release candidate version of Python your WSL distro has is suspicious... so that could indeed be the problem.
|
@bromps I 'solved' it by recreating the environment with the WSL's interpreter as was suggested, as I'm already using |
Issue description
WSL on Windows 10 with Ubuntu 18.04
On WSL the command 'pipenv shell' does not launch a subshell or activate the environment. Due to #3488, I had to uninstall all Windows versions of Python to have success at creating the environment.
Expected result
Actual result
Typing exit here will close the terminal. It is possible to to manually activate the environment without launching a subshell with:
source $(pipenv --venv)/bin/activate
Steps to replicate
Pipfile:
Expected result
$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/home/mfaine/.local/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/bin/python3'
Python installations found:
3.6.7
:/usr/bin/python3
3.6.7
:/usr/bin/python3.6m
2.7.15rc1
:/usr/bin/python
PEP 508 Information:
System environment variables:
LS_COLORS
HOSTTYPE
LESSCLOSE
LANG
USER
PWD
HOME
NAME
SHELL
TERM
SHLVL
LOGNAME
PATH
LESSOPEN
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/ProgramData/scoop/shims:/mnt/c/Windows:/mnt/c/Windows/System32:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Oracle/product/12.2.0/client_1/bin:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath_target_1966171:/mnt/c/Program Files/Microsoft Network Monitor 3:/mnt/c/Program Files (x86)/HID Global/ActivClient:/mnt/c/Program Files/HID Global/ActivClient:/mnt/c/Program Files/Intel/WiFi/bin:/mnt/c/Program Files/Common Files/Intel/WirelessCommon:/mnt/c/ProgramData/Oracle/Java/javapath_target_152566531:/mnt/c/Program Files/nodejs:/mnt/c/Program Files (x86)/Sennheiser/SoftphoneSDK:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files/PuTTY:/mnt/c/Vagrant/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/mnt/c/Program Files (x86)/Windows Kits/10/Microsoft Application Virtualization/Sequencer:/mnt/c/Users/mfaine/scoop/shims:/mnt/c/Users/mfaine/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/Intel/WiFi/bin:/mnt/c/Program Files/Common Files/Intel/WirelessCommon:/mnt/c/Users/mfaine/AppData/Roaming/npm:/mnt/c/Users/mfaine/AppData/Local/Programs/Microsoft VS Code Insiders/bin:/mnt/c/Program Files/Oracle/VirtualBox:/home/mfaine/.local/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/mnt/c/Users/mfaine/Desktop/env-setup
Contents of
Pipfile
('/mnt/c/Users/mfaine/Desktop/env-setup/Pipfile'):Contents of
Pipfile.lock
('/mnt/c/Users/mfaine/Desktop/env-setup/Pipfile.lock'):The text was updated successfully, but these errors were encountered: