Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] pip wrong about installed packages
@ 2023-10-21 20:47 zlice
  2023-10-21 20:58 ` classabbyamp
  2023-10-21 21:38 ` [ISSUE] [CLOSED] " zlice
  0 siblings, 2 replies; 3+ messages in thread
From: zlice @ 2023-10-21 20:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2174 bytes --]

New issue by zlice on void-packages repository

https://github.com/void-linux/void-packages/issues/46821

Description:
### Is this a new report?

Yes

### System Info

Void 6.5.7 x86_64 AuthenticAMD notuptodate rFFFFFFFFF

### Package(s) Affected

pip, python

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

pip detects proper packages and installs

### Actual behaviour

```
error: externally-managed-environment

× This environment is externally managed
╰─> 
    This system-wide Python installation is managed by the Void Linux package
    manager, XBPS. Installation of Python packages from other sources is not
    normally allowed.
    
    To install a Python package not offered by Void Linux, consider using a virtual
    environment, e.g.:
    
    python3 -m venv /path/to/venv
    /path/to/venv/pip install <package>
    
    Appending the flag --system-site-packages to the first command will give the
    virtual environment access to any Python package installed via XBPS.
    
    Invoking python, pip, and executables installed by pip in /path/to/venv/bin
    should automatically use the virtual environment. Alternatively, source its
    activation script to add the environment to the command search path for a shell:
    
    . /path/to/venv/activate
    
    After activation, running
    
    deactivate
    
    will remove the environment from the search path without destroying it.
    
    The XBPS package python3-pipx provides pipx, a convenient tool to automatically
    manage virtual environments for individual Python applications.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
```

### Steps to reproduce

1. `xbps-install dlib`
2. `xbps-remove dlib`
3. `pip install dlib`

Did a `pip install dlib --break-system-packages` between 1 and 2 before remove, not sure if that matters

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pip wrong about installed packages
  2023-10-21 20:47 [ISSUE] pip wrong about installed packages zlice
@ 2023-10-21 20:58 ` classabbyamp
  2023-10-21 21:38 ` [ISSUE] [CLOSED] " zlice
  1 sibling, 0 replies; 3+ messages in thread
From: classabbyamp @ 2023-10-21 20:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/46821#issuecomment-1773919781

Comment:
that error is [intentional](https://voidlinux.org/news/2023/10/python3-external.html)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ISSUE] [CLOSED] pip wrong about installed packages
  2023-10-21 20:47 [ISSUE] pip wrong about installed packages zlice
  2023-10-21 20:58 ` classabbyamp
@ 2023-10-21 21:38 ` zlice
  1 sibling, 0 replies; 3+ messages in thread
From: zlice @ 2023-10-21 21:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2177 bytes --]

Closed issue by zlice on void-packages repository

https://github.com/void-linux/void-packages/issues/46821

Description:
### Is this a new report?

Yes

### System Info

Void 6.5.7 x86_64 AuthenticAMD notuptodate rFFFFFFFFF

### Package(s) Affected

pip, python

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

pip detects proper packages and installs

### Actual behaviour

```
error: externally-managed-environment

× This environment is externally managed
╰─> 
    This system-wide Python installation is managed by the Void Linux package
    manager, XBPS. Installation of Python packages from other sources is not
    normally allowed.
    
    To install a Python package not offered by Void Linux, consider using a virtual
    environment, e.g.:
    
    python3 -m venv /path/to/venv
    /path/to/venv/pip install <package>
    
    Appending the flag --system-site-packages to the first command will give the
    virtual environment access to any Python package installed via XBPS.
    
    Invoking python, pip, and executables installed by pip in /path/to/venv/bin
    should automatically use the virtual environment. Alternatively, source its
    activation script to add the environment to the command search path for a shell:
    
    . /path/to/venv/activate
    
    After activation, running
    
    deactivate
    
    will remove the environment from the search path without destroying it.
    
    The XBPS package python3-pipx provides pipx, a convenient tool to automatically
    manage virtual environments for individual Python applications.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
```

### Steps to reproduce

1. `xbps-install dlib`
2. `xbps-remove dlib`
3. `pip install dlib`

Did a `pip install dlib --break-system-packages` between 1 and 2 before remove, not sure if that matters

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-21 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-21 20:47 [ISSUE] pip wrong about installed packages zlice
2023-10-21 20:58 ` classabbyamp
2023-10-21 21:38 ` [ISSUE] [CLOSED] " zlice

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).