path to python in venv
Peter J. Holzer
hjp-python at hjp.at
Wed Sep 27 18:51:45 EDT 2023
On 2023-09-27 20:32:25 -0000, Jon Ribbens via Python-list wrote:
> On 2023-09-27, Larry Martell <larry.martell at gmail.com> wrote:
> > On Wed, Sep 27, 2023 at 12:42 PM Jon Ribbens via Python-list<python-list at python.org> wrote:
> >> On 2023-09-27, Larry Martell <larry.martell at gmail.com> wrote:
> >> > lrwxrwxrwx 1 larrymartell larrymartell 7 Sep 27 11:21 python -> python3
> >> > lrwxrwxrwx 1 larrymartell larrymartell 16 Sep 27 11:21 python3 -> /usr/bin/python3
[...]
> I'm a bit surprised your symlinks are as shown above though - mine
> link from python to python3.11 to /usr/bin/python3.11, so it wouldn't
> change the version of python used even if I installed a different
> system python version.
That's probably because you created the venvs with "python3.11 -m venv ...".
The symlink points to the command you used to create it:
% python3 -m venv venv
% ll venv/bin/python*
lrwxrwxrwx 1 hjp hjp 7 Aug 29 2022 venv/bin/python -> python3*
lrwxrwxrwx 1 hjp hjp 12 Aug 29 2022 venv/bin/python3 -> /bin/python3*
lrwxrwxrwx 1 hjp hjp 7 Aug 29 2022 venv/bin/python3.10 -> python3*
% python3.10 -m venv venv
% ll venv/bin/python*
lrwxrwxrwx 1 hjp hjp 10 Sep 28 00:45 venv/bin/python -> python3.10*
lrwxrwxrwx 1 hjp hjp 10 Sep 28 00:45 venv/bin/python3 -> python3.10*
lrwxrwxrwx 1 hjp hjp 15 Sep 28 00:45 venv/bin/python3.10 -> /bin/python3.10*
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp at hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/python-list/attachments/20230928/f4be2b28/attachment.sig>
More information about the Python-list
mailing list