Deutsch English Français Italiano |
<mailman.6.1744735462.3008.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail From: Friedrich Romstedt <friedrichromstedt@gmail.com> Newsgroups: comp.lang.python Subject: Re: Pip installs to unexpected place Date: Tue, 15 Apr 2025 18:43:43 +0200 Lines: 42 Message-ID: <mailman.6.1744735462.3008.python-list@python.org> References: <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com> <CAN06=CxPNLHtr_sdgphR2jrN1V+WbB8wZDJdbvfEDb-MYtmPHA@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: news.uni-berlin.de JGsqunhOwCcgLdZVs0TKVgoVKJWN8vPV+7LDSZWtZ3Cg== Cancel-Lock: sha1:f4A42TXfRyE9IRBp67iFFWeOVbY= sha256:TC9eTQXOnStWbP0uabuDft/jcCnBdUh2v27QqcB3HUU= Return-Path: <friedrichromstedt@gmail.com> 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=gmail.com header.i=@gmail.com header.b=c2SDq1M5; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.070 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'have,': 0.07; 'cc:addr :python-list': 0.09; 'line:': 0.09; 'linux': 0.09; 'schrieb': 0.09; 'url:stable': 0.09; 'cc:no real name:2**0': 0.14; '2025': 0.16; 'command.': 0.16; 'present,': 0.16; 'specify': 0.16; 'virtualenv': 0.16; 'cc:addr:python.org': 0.20; 'installed': 0.23; 'cc:2**0': 0.25; 'fact': 0.28; 'environment': 0.29; 'it,': 0.29; 'message-id:@mail.gmail.com': 0.31; 'python-list': 0.32; 'but': 0.32; 'there': 0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.34; 'following': 0.35; 'this.': 0.35; 'files': 0.36; 'people': 0.36; 'using': 0.37; 'directory': 0.37; 'though': 0.37; 'file': 0.38; 'best,': 0.38; 'put': 0.38; 'list': 0.39; 'forward': 0.62; 'true': 0.63; 'skip:b 10': 0.63; 'your': 0.64; 'url-ip:104.16/16': 0.65; 'look': 0.65; 'skip:/ 10': 0.69; 'took': 0.69; 'instead,': 0.70; 'virtual': 0.71; 'email name:<python-list': 0.84; 'skip:p 50': 0.84; 'stressed': 0.84; 'activate': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744735460; x=1745340260; darn=python.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WR8/R6qkwk1QnzTDMDQYbptrhZ0jJsD+shDFejxyhqg=; b=c2SDq1M52qHT+DoP/yEISmvIn1BN+F7lE9vboS1y/nKMdto3t1jy5GjtkERJU/eIpA xpj7863Pewbxe8aP9PzRhFsaDB+tJOqwPXLA3P+J9j6rB/4JmKo5aUUhoXQKheMqvmsh XRyqMne6a6U2U+DbQ/mdFR5nrE9iDDbn54EPbewfroba8PGaM66Pc0Lsfr2eANo8bDXu BrtfL8gw/i4OO2oAwJHKoD8jpZc8O4w17WP3cGoj/xAUcQey5po6sSbMdPRNK4OzpFha scE7uJ0axT0AiviMOo6JjMqIIr/YvJNKFgDdKT+warc2YVgFUgrTpw3bccCajkQju6T5 TQpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744735460; x=1745340260; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WR8/R6qkwk1QnzTDMDQYbptrhZ0jJsD+shDFejxyhqg=; b=IzaLZWnTodZNwM0tYE0pCrkUX7Vq4IgHuS9sf8JyfBxWvf4XpK/8dyh0aumz8IGkY4 hijtqLo/AK3KTbj/I35jmWY4dUbHr4wF/b6q+OYF4jRjtqYYaNpu9SesjLkEoAfw7wbK tsc1bth82V5cbFWG+7mRX8yF5qn0ymggaEHNxmOZ+MMOeqndgGB/XGYgmD65bIZSnsRV 5z/mf5odozwJcTNs7XSr+xkL4UUGewU5pppQiJ8yMoxvtcvV9YR//XH191nvIwZgzLBs 8gADJ7KM3t58UiNMrFGrxH/S52LmVKgRR6h/e940Sc98l2UPgWXXmmhHl/f7fNO8pIoZ pnaQ== X-Gm-Message-State: AOJu0Yz5HvbWYVFAitcyhNqX43gpt75nN6b4Dq0YeddW8YHLUOJ6W/aH mytHAlT+QdtumF3cs1XtB+om6nz5YN+OEHOcqrzVNdUcO958LK5LnOHUJLmF/d2cnxz0aHDxRKY LFLI0UaVwHNwVnGRLMzGb8fmnEt+Z9Ckt X-Gm-Gg: ASbGnctwn8rMOilyaupRw7ujWNVecqdyJj9XjGIzdmz/zbHw8oRsD2H2TTTSRxhFm74 YT2tQ+07biPqZ4LXFTaNZXkPAvKYDna0BH3yNu5a9FCAcSW9rMgpyDXM2OduOFwT4jjUG9hHQBD vkrPYesqEKe+GtWL2HEoTpDJGPodjTYkEmhCBobrhEdJxsrUtYpB7qBQ== X-Google-Smtp-Source: AGHT+IHpEb7aQYCGCxA9U8/Nnhwwc15P6VZcnGbz46bFveOtE1MaLd3JAmLB/+XY1C9T3GdQkBOufMbLG/QMm4YoCOs= X-Received: by 2002:a05:690c:c03:b0:705:a95f:edaf with SMTP id 00721157ae682-705a95ff6damr38241337b3.26.1744735459686; Tue, 15 Apr 2025 09:44:19 -0700 (PDT) In-Reply-To: <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com> X-Gm-Features: ATxdqUFVTRYvnZiH7sPo-6Kt0qpQV4PZ2Mi11si1xSXmKxZIcPzBt_UsXwiE46U X-Content-Filtered-By: Mailman/MimeDel 2.1.39 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: <CAN06=CxPNLHtr_sdgphR2jrN1V+WbB8wZDJdbvfEDb-MYtmPHA@mail.gmail.com> X-Mailman-Original-References: <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com> Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list <python-list@python.org>: > I am using *Python 3.13* in a virtual environment under *Ubuntu Linux > 24.04* > . > [...] > Instead, it was > installed into the site-packages directory in > */home/jonathan/.locals/lib/python3.13/site-packages* even though I did not > specify *--user* to the *pip install* command. Is this expected behavior? I > wanted Sphinx to be installed in the virtual environment so that it would > be accessible to all users of the virtual environment. Hi Jonathan, Many people put emphasis on that you need to *activate* a virtualenv before using it, but no-one so far stressed the fact that you got Sphinx installed to ~/jonathan/.local/lib/python3.13/site-packages *without using *--user. Do you have, by any chance, one of the following pip-related configuration files present? - /etc/pip.conf - ~/.config/pip/pip.conf - ~/.pip/pip.conf (lagacy) I took this list from https://pip.pypa.io/en/stable/topics/configuration/. *If* there is any such file present, you might look out for a line: user = true but I am not entirely certain about this. Looking forward to your reply! Best, Friedrich