Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197397
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Thomas Passin <list1@tompassin.net> |
| Newsgroups | comp.lang.python |
| Subject | Re: Pip installs to unexpected place |
| Date | Mon, 14 Apr 2025 21:51:08 -0400 |
| Lines | 29 |
| Message-ID | <mailman.5.1744696569.3008.python-list@python.org> (permalink) |
| References | <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com> <020e0ef5-3d53-4f9c-acb5-842a1a971b10@tompassin.net> <CAApdmf0+91Br19ZTa5sh0CLywWhD6wyL5Ou9118cF8D==edJBg@mail.gmail.com> <45c52b56-eb57-4d54-9f91-bee30280d16f@tompassin.net> <mailman.3.1744659206.3008.python-list@python.org> <87lds22xnm.fsf@nosuchdomain.example.com> <13f85152-6799-4010-906e-2d85127a5392@tompassin.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de 0gW0ADuG+iA9iBD6zC834Qce+EajU1eQ1Ky7bq5PergQ== |
| Cancel-Lock | sha1:i/nCvemHxeSaPVaBRLhyyWzyQ/E= sha256:HdGmwkWTX8zvnTJwQqjziJMp6m4vZq3Hf/eAWngomgw= |
| Return-Path | <list1@tompassin.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| Authentication-Results | mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=tompassin.net header.i=@tompassin.net header.b=GuiY7Eg/; dkim-adsp=pass; dkim-atps=neutral |
| X-Spam-Status | OK 0.021 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'linux': 0.09; 'writes:': 0.09; 'that.': 0.15; 'executable': 0.16; 'flag.': 0.16; "hadn't": 0.16; 'received:10.0.0': 0.16; 'received:64.90': 0.16; 'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16; 'received:dreamhost.com': 0.16; 'script,': 0.16; 'script.': 0.16; 'undo': 0.16; 'wrote:': 0.16; 'probably': 0.17; 'pm,': 0.19; 'to:addr:python-list': 0.20; 'run': 0.23; '(and': 0.25; "wasn't": 0.26; 'environment': 0.29; 'it,': 0.29; 'header:User-Agent:1': 0.30; 'looked': 0.31; 'marked': 0.32; 'python-list': 0.32; 'received:10.0': 0.32; 'received:mailchannels.net': 0.32; 'received:relay.mailchannels.net': 0.32; 'right,': 0.32; 'but': 0.32; 'mark': 0.32; 'script': 0.33; 'header:In-Reply-To:1': 0.34; 'windows': 0.34; 'source': 0.36; 'prompt': 0.39; 'received:100': 0.39; 'your': 0.64; 'required': 0.65; 'header:Received:6': 0.67; 'received:64': 0.68; 'that,': 0.68; 'content.': 0.70; 'risk': 0.71; "you'll": 0.73; 'forgot': 0.84; 'activate': 0.91 |
| X-Sender-Id | dreamhost|x-authsender|tpassin@tompassin.net |
| ARC-Seal | i=1; s=arc-2022; d=mailchannels.net; t=1744681870; a=rsa-sha256; cv=none; b=6FQV91+xtJxuUjxSzK1QolPF06C5qQfE6wmQACmdstoYnfgw4MNJJYGpDxpOmd+gLzPl0p NpUgxKrO8bxJqvVBe2Q8X0D+LHwkb96kfw1mLL3Pim/H9mLvYW9BhbT11nwTQJnAu1X6aQ ujLXqVAlqq9tXM7iYNQo+4kDrsgQGuQde8pXD1+oz0h2fTvAbevUWFjYJhCWmESaCz5/rZ v+Z9/wLE4OLPpQmZub0WFa5OjdaTXYb7sx/smcsS/A7kGRoNrw4uNyDNmlRaOvOMUYQ7K2 NwAYgrxLB+uHANPy1/q0/3dJ2sCDOqCpEX1gDv4uyRWdp2/CIc1aIvMHS01Cgw== |
| ARC-Message-Signature | i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1744681870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=SYLCY26mcGa2j16wDU5I3Rc1qiVW51kLBeFYeIG/hOQ=; b=hkWbtp8Wpskp5jQtXNwCygx7GjkAc1Y97FxRXaGaN5LRDxn9CK4NqfUmndw2vJTUMVqM0A zRS6YsJGa9eOOhMVQkkF/uMXIJ8V6EDcyk88912pucorqZyglmDTwB0T+qrFDx027mL197 wvW6n9lmKRKwsEam24UNQfHmpJpISnecc5NxN3pXwdtSFC0rOnCsyCtZk1/Q/7jjS4D7Ui nwP0vfH+L8MHLWPTWqQKqZBplNCqIpIDvU+SE2XTKsdGFzUQMI7dicMERYQtFScsZ7n0vJ HGSSrJrbJwdV0+N6NGmpMlkzf5XfGr2sds75JZAyP6h8UOlo4FtgN06kuT/tzg== |
| ARC-Authentication-Results | i=1; rspamd-865c984fb5-9h7ng; auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net |
| X-Sender-Id | dreamhost|x-authsender|tpassin@tompassin.net |
| X-MC-Relay | Neutral |
| X-MailChannels-SenderId | dreamhost|x-authsender|tpassin@tompassin.net |
| X-MailChannels-Auth-Id | dreamhost |
| X-Dime-Shoe | 4cd2c098108f13e3_1744681871428_3912138891 |
| X-MC-Loop-Signature | 1744681871428:3965862308 |
| X-MC-Ingress-Time | 1744681871427 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net; s=dreamhost; t=1744681870; bh=SYLCY26mcGa2j16wDU5I3Rc1qiVW51kLBeFYeIG/hOQ=; h=Date:From:Subject:To:Content-Type:Content-Transfer-Encoding; b=GuiY7Eg/CBUYFQVhi8XacpajGuS/61mqFU38kwyp3BX2Z20i03vgzqjQ3QyK7XeLb R8uyLOn0IF9sbIVsmmJH5SwrtTe8yCydx00EzJ+h+fgtrt7hEub3UE83CRMLnOGc+8 mVPzAcPYYbgPJQCw/x6dlt+FKm2DFNEncDQ1pVZjzoM84LIr2qjUIwZQOnLm7JfktK 1Au2tJeSXYCLxY8NzlhK0TgvF2OhJf4GJTnprfFoj+1Kjq3b8+LwtbF9T9RSyprd7O PHvGbjCV0Ja/TTe1Zziwo9furtwIHCJ170YQ12Nu2OPAXOy4v2T2Owwp3NqNZYdc1T HdeDfj85x3xow== |
| User-Agent | Mozilla Thunderbird |
| Content-Language | en-US |
| In-Reply-To | <87lds22xnm.fsf@nosuchdomain.example.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.39 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <https://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <13f85152-6799-4010-906e-2d85127a5392@tompassin.net> |
| X-Mailman-Original-References | <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com> <020e0ef5-3d53-4f9c-acb5-842a1a971b10@tompassin.net> <CAApdmf0+91Br19ZTa5sh0CLywWhD6wyL5Ou9118cF8D==edJBg@mail.gmail.com> <45c52b56-eb57-4d54-9f91-bee30280d16f@tompassin.net> <mailman.3.1744659206.3008.python-list@python.org> <87lds22xnm.fsf@nosuchdomain.example.com> |
| Xref | csiph.com comp.lang.python:197397 |
Show key headers only | View raw
On 4/14/2025 6:20 PM, Keith Thompson via Python-list wrote: > Thomas Passin <list1@tompassin.net> writes: > [...] >> To activate a venv, you have to source its activate script, which is >> in the venv. First you have to mark it as executable. Then you source >> it - >> >> source ~/venv/gf4/bin/activate > [...] > > No, you don't have to (and probably shouldn't) mark the script as > executable. > > Making a script executable (chmod +x) is required before *executing* it, > but when you *source* a script (using "source" or "."), your current > shell reads it and evaluates its content. > > Making the active script executable introdues the risk that you'll > accidentally execute it rather than sourcing it. If you do that, it > will probably set up the environment in a new shell process which then > immediately terminates. You are right, my bad. When I went to check on what the venv prompt looked like after activation, I hadn't run my Linux VM for too long and forgot that the activate script needs to be sourced - in Windows it just gets run as any other script. I noticed it wasn't marked executable and blindly "fixed" that. Then of course I remembered the script has to be sourced - and forgot to undo the execute flag.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-14 09:55 -0400
Re: Pip installs to unexpected place rbowman <bowman@montana.com> - 2025-04-14 21:56 +0000
Re: Pip installs to unexpected place Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-14 15:31 -0700
Re: Pip installs to unexpected place Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-14 15:20 -0700
Re: Pip installs to unexpected place rbowman <bowman@montana.com> - 2025-04-15 01:12 +0000
Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-14 23:11 -0400
Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-14 21:51 -0400
csiph-web