<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="2">Hi Tony,</font></p>
    <p><font size="2">that makes absolutely sense.</font></p>
    <div class="moz-cite-prefix">Am 17.02.25 um 15:28 schrieb Tony
      Arnold:<br>
    </div>
    <blockquote type="cite"
cite="mid:e6ef0fc6127b5499000ea4bf30f3af6bcb98beaf.camel@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <style>pre,code,address {
  margin: 0px;
}h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}</style>
      <div>Hi,</div>
      <div><br>
      </div>
      <div>Not sure if this is a bug or a feature, but I've observed the
        following behaviour when configuring virtual environment on
        eric7 25.2 running on Ubuntu 24.04.</div>
      <div><br>
      </div>
      <div>If I configure the python interpreter for a venv as
        /usr/bin/python3, then eric shows all the locally installed
        packages in the PyPi panel rather than just those in the venv.
        Also when trying to install a package in the venv, it gives an
        error saying the venv is locally managed.</div>
    </blockquote>
    With that Python interpreter configuration you are referring to the
    globa interpreter and not the one of the virtual environment. As the
    global Python packages are managed through the Ubuntu (Debian)
    package manager, a user is not allowed to install packages via pip
    in the global scope anymore. That was a change that happened (I
    think) with Debian 12 and Ubuntu 24.04.
    <blockquote type="cite"
cite="mid:e6ef0fc6127b5499000ea4bf30f3af6bcb98beaf.camel@gmail.com">
      <div><br>
      </div>
      <div>However, if I configure the interpreter to use the path of
        the venv, e.g., /home/venv/somevenv/bin/python3, then PyPi shows
        just the packages in that venv and allows installation and
        removal of packages within the venv.</div>
    </blockquote>
    That is the expected behavior because the configured interpreter is
    the one of the virtual environment.
    <blockquote type="cite"
cite="mid:e6ef0fc6127b5499000ea4bf30f3af6bcb98beaf.camel@gmail.com">
      <div><br>
      </div>
      <div>Hope this makes sense.</div>
    </blockquote>
    <p>Everything is fine here. Sometimes paths matter even if the final
      goal is the same executable.</p>
    <p>Regards<br>
      Detlev</p>
    <pre class="moz-signature" cols="72">--
Detlev Offenbach
<a class="moz-txt-link-abbreviated" href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a></pre>
  </body>
</html>