Skip to content

Installing xarray in Linux Mint #111

@DanRRRR

Description

@DanRRRR

Hi author and users,

Was excited with sdf-xarray detailed description and many very nice examples and decided to install and try it. I use Linux Mint ( the one which is the most user-friendly among all Linux distributions, closely resembling Windows and having safety measures against bad installations. It is based on Ubuntu. We run EPOCH on it and via WINE simultaneously Windows too) and Python I already installed before which I checked using command python --version and got: Python3.12.3

Then I have cloned xarray exactly how Getting Started https://sdf-xarray.readthedocs.io/en/latest/getting_started.html suggests

  1. git clone --recursive https://github.com/epochpic/sdf-xarray.git
  2. got into sdf-xarray directory cd sdf-xarray
  3. and tried to install it using command pip install
  4. Got the error message
    Command 'pip' not found, but can be installed with:
    sudo apt install python3-pip
  5. Ok, I installed python3-pip . Installation message is long but the key part is here (might be not needed but let it be just in case because many will probably experience the same problem)

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libjs-sphinxdoc libjs-underscore libpython3-dev libpython3-stdlib
libpython3.12-dev libpython3.12-minimal libpython3.12-stdlib
libpython3.12t64 python3 python3-dev python3-minimal
python3-setuptools python3-wheel python3.12 python3.12-dev
python3.12-minimal
Suggested packages:
python3-doc python3-tk python3-venv python-setuptools-doc
python3.12-venv python3.12-doc binfmt-support
The following NEW packages will be installed:
libjs-sphinxdoc libjs-underscore libpython3-dev libpython3.12-dev
python3-dev python3-pip python3-setuptools python3-wheel
python3.12-dev
The following packages will be upgraded:
libpython3-stdlib libpython3.12-minimal libpython3.12-stdlib
libpython3.12t64 python3 python3-minimal python3.12
python3.12-minimal
8 upgraded, 9 newly installed, 0 to remove and 402 not upgraded.
Need to get 16.5 MB of archives.
After this operation, 40.5 MB of additional disk space will be used.

  1. Then I tried to install sdf-xarray with command pip install and got the following error

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-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. Make
sure you have python3-full installed.

If you wish to install a non-Debian 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.

See /usr/share/doc/python3.12/README.venv for more information.

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.

  1. On that point all further installation attempts like apt install python3-sdf-xarray etc failed with the error messages Unable to locate package sdf-xarray etc

Any suggestions would be greatly appreciated !

Metadata

Metadata

Assignees

No one assigned

    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