[issue43218] after venv activation "which python3" and sys.path both give base installation instead of venv
New submission from Neel Gore : Fresh python 3.9.1 installation on macOS, shell is zsh activated a venv with "python3 -m venv .venv" activated with "source .venv/bin./activate" "which python3" and "which pip3" both show my base installation -- components: macOS files: Screen Shot 2021-02-13 at 8.31.20 PM.png messages: 386931 nosy: ned.deily, neeltennis, ronaldoussoren priority: normal severity: normal status: open title: after venv activation "which python3" and sys.path both give base installation instead of venv type: behavior versions: Python 3.9 Added file: https://bugs.python.org/file49807/Screen Shot 2021-02-13 at 8.31.20 PM.png ___ Python tracker <https://bugs.python.org/issue43218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43218] after venv activation "which python3" and sys.path both give base installation instead of venv
Neel Gore added the comment: zsh 5.8 (x86_64-apple-darwin20.0) and macOS Big Sur 11.2.1 This was the normal python dot org installation. -- ___ Python tracker <https://bugs.python.org/issue43218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43218] after venv activation "which python3" and sys.path both give base installation instead of venv
Neel Gore added the comment: Just ran: neelgore@Neels-MacBook-Pro Project 4:5 % rm -r .venv neelgore@Neels-MacBook-Pro Project 4:5 % which python3 /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 neelgore@Neels-MacBook-Pro Project 4:5 % python3 -m venv .venv neelgore@Neels-MacBook-Pro Project 4:5 % source .venv/bin/activate (.venv) neelgore@Neels-MacBook-Pro Project 4:5 % which python3 /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 (.venv) neelgore@Neels-MacBook-Pro Project 4:5 % -- ___ Python tracker <https://bugs.python.org/issue43218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43218] after venv activation "which python3" and sys.path both give base installation instead of venv
Neel Gore added the comment: (sorry for double message) update: Just created a venv in Desktop and another in a directory in Documents and got the correct behavior both times. Seems like the issue is isolated to the certain directory? -- ___ Python tracker <https://bugs.python.org/issue43218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43218] after venv activation "which python3" and sys.path both give base installation instead of venv
Neel Gore added the comment: This is Python 3.9.1 from the normal python.org download. Before venv activation, "echo $PATH" gives: /Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public After activation, "ls -l .venv/bin" gives: total 88 -rw-rw-r-- 1 neelgore staff 8834 Feb 14 14:51 Activate.ps1 -rw-rw-r-- 1 neelgore staff 1942 Feb 14 14:51 activate -rw-rw-r-- 1 neelgore staff 891 Feb 14 14:51 activate.csh -rw-rw-r-- 1 neelgore staff 2031 Feb 14 14:51 activate.fish -rwxr-xr-x 1 neelgore staff 327 Feb 14 14:51 easy_install -rwxr-xr-x 1 neelgore staff 327 Feb 14 14:51 easy_install-3.9 -rwxr-xr-x 1 neelgore staff 318 Feb 14 14:51 pip -rwxr-xr-x 1 neelgore staff 318 Feb 14 14:51 pip3 -rwxr-xr-x 1 neelgore staff 318 Feb 14 14:51 pip3.9 lrwxr-xr-x 1 neelgore staff 7 Feb 14 14:51 python -> python3 lrwxr-xr-x 1 neelgore staff61 Feb 14 14:51 python3 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 lrwxr-xr-x 1 neelgore staff 7 Feb 14 14:51 python3.9 -> python3 and "echo $PATH" gives: /Users/neelgore/Documents/UC Irvine/Y1/Q2/ICS 32/Project 4:5/.venv/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public -- ___ Python tracker <https://bugs.python.org/issue43218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43218] after venv activation "which python3" and sys.path both give base installation instead of venv
Neel Gore added the comment: Ah in hindsight I see why this was troublesome; the directory name was "Project 4/5", and zsh was displaying the / with a :. Renaming the directory to "Project 4_5" fixed the problem. Thanks everyone! -- ___ Python tracker <https://bugs.python.org/issue43218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com