-
-
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
pipenv shell malforms PATH on git bash for windows #970
Comments
Hi @EGrunzke! Bash for Windows using MingWin isn't supported just yet. On windows we support the cmd console host emulator, the powershell terminal emulator, and the popular open source cmder terminal emulator. I think pipenv is getting confused becasue of the windows paths in a unix-y environment. I would recomend you try out one of the other shells, especially cmder as it has many wonderful features including bash like scripting inside of powershell! |
I also faced similar issue on my GIT bash shell (version 2.7.3). Updating the shell to latest version did not help. What finally worked for me was manually editing the $PATH variable. Here's what i did:
This worked for me. |
@niks-git - your workaround solution worked for me, thanks! Unfortunately, it seems that the procedure is needed each time Could you or anyone else guide me into automating the procedure each time I run |
@erinxocon I would argue that git for windows, and mingwin are actually commonly used for terminal shells in Windows (especially for all of us coming from *nix/mac), and lacking support for it is a real problem. |
You should consider looking at more than one closed issue before commenting. We merged several PRs adding support for this and have split out an entire separate library to improve it further. These fixes will land in the next release. |
I had this bug with pipenv 2018.5.18. A bypass that worked for me was to delete ~/.bashrc. That meant I lose any customization of bash, but the PATH worked. Updating to 2018.7.1 fixed it for good. |
I also have this problem. |
On git bash for windows,
pipenv shell
results in command not found for most commands (python
,git
,ls
,which
, etc)<Note: I know that python -V says
3.6.3
and the path says3.6.0
; I did an upgrade and never bothered to rename the directory>Interestingly, in the windows command prompt
pipenv shell
works as expected.I think the problem is in the PATH. Here's the path before and after
pipenv shell
It appears that the path is being created in a windows format despite being in a bash shell. I say that based on:
:
to;
(Unix to Windows)/c/
toC:\
Is there a flag or config to force unix-style PATH in
pipenv shell
?Environment
The text was updated successfully, but these errors were encountered: