I am working on learning Django for backend and full-stack development. I have that working with pipenv for virtual environments can be a pain in the rear end (at least on macOS). In the terminal, I get into the pipenv shell and some common bash commands no longer work (e.g. 'ls' and some commands stored to the PATH variable like 'code'). I have attached a video to illustrate how this is not working:
YouTube video of pipenv shell bash commands not working
Has anyone else ever experienced this issue? Thanks!
EDIT: Per userbase request, I have included the text:
mbGem:booklist lamidotijjo$ echo $PATH
/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Users/lamidotijjo/.dotnet/tools:/Library/Apple/usr/bin:/Users/lamidotijjo/ia:/usr/local/mysql-8.0.31-macos12-arm64/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
mbGem:booklist lamidotijjo$ pwd
/Users/lamidotijjo/Projects/booklist
mbGem:booklist lamidotijjo$ pipenv install django
Installing django...
Installing dependencies from Pipfile.lock (79baf8)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
mbGem:booklist lamidotijjo$ pipenv shell
Launching subshell in virtual environment...
The default interactive shell is now zsh.
To update your account to use zsh, please run
chsh -s /bin/zsh
.
For more details, please visit https://support.apple.com/kb/HT208050 .
bash-3.2$ . /Users/lamidotijjo/.local/share/virtualenvs/Projects-3XO0tcpO/bin/activate
(Projects) bash-3.2$ ls
bash: ls: command not found
(Projects) bash-3.2$ ls -l
bash: ls: command not found
(Projects) bash-3.2$ code
bash: code: command not found
(Projects) bash-3.2$ code .
bash: code: command not found
(Projects) bash-3.2$
Asked by Ubuntuer
(1 rep)
Jan 5, 2023, 06:27 PM
Last activity: Jan 5, 2023, 07:34 PM
Last activity: Jan 5, 2023, 07:34 PM