Skip to content

error: externally-managed-environment in Python 3.12 test #939

@asmorkalov

Description

@asmorkalov

Link: https://github.com/opencv/opencv-python/actions/runs/7330807832/job/19977958127?pr=934

Run python3.12 -m pip install --user --no-cache --force-reinstall wheelhouse/opencv*.whl
  python3.12 -m pip install --user --no-cache --force-reinstall wheelhouse/opencv*.whl
  cd /Users/opencv-cn/GHA-OCV-1/_work/opencv-python/opencv-python/tests
  python3.12 get_build_info.py
  shell: /bin/bash -e {0}
  env:
    OPENCV_TEST_DATA_PATH: /Users/opencv-cn/GHA-OCV-1/_work/opencv-python/opencv-python/opencv_extra/testdata
    PYLINT_TEST_FILE: /Users/opencv-cn/GHA-OCV-1/_work/opencv-python/opencv-python/opencv/samples/python/squares.py
    PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-brew-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.
    
    If you wish to install a non-brew packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

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.

Notice:  A new release of pip is available: 23.3.1 -> 23.3.2
Notice:  To update, run: python3.12 -m pip install --upgrade pip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy