Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install spectral via python pip




spectral - Spectral Python (SPy) is a Python module for hyperspectral image processing., it belongs to Classifiers:

- Programming Language :: Python :: 2.6
- Topic :: Scientific/Engineering :: GIS
- Topic :: Scientific/Engineering :: Image Recognition
- Topic :: Scientific/Engineering :: Information Analysis
- Topic :: Scientific/Engineering :: Visualization

When you know about this project and you want to new install spectral to support your project or you get trouble as ModuleNotFoundError: No module named "spectral" or ImportError: cannot import name "spectral" in your project, let follow this tutorial to install spectral



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_spectral_env

- Active the virtual environment

test_spectral_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_spectral_env

- Active the virtual environment

source test_spectral_env/bin/active


Step 2: OK, now, let flow below content to start the installation spectral

To install spectral on Windows(CMD):

py -m pip install spectral

To install spectral on Unix/macOs:

pip install spectral


Step 3: If you want to install a specific spectral version, add ==<spectral version> to the end command line

Example:

pip install spectral==0.9


Please see the version list below table:

VersionReleased dateCommand
spectral 0.22.42021-10-05T04:07:24Windows:

py -m pip install spectral==0.22.4

Unix/macOs:

pip install spectral==0.22.4

spectral 0.22.32021-10-01T13:41:32Windows:

py -m pip install spectral==0.22.3

Unix/macOs:

pip install spectral==0.22.3

spectral 0.22.22021-03-31T19:44:01Windows:

py -m pip install spectral==0.22.2

Unix/macOs:

pip install spectral==0.22.2

spectral 0.22.12020-08-02T19:31:21Windows:

py -m pip install spectral==0.22.1

Unix/macOs:

pip install spectral==0.22.1

spectral 0.222020-08-01T20:53:54Windows:

py -m pip install spectral==0.22

Unix/macOs:

pip install spectral==0.22

spectral 0.212020-04-26T17:42:30Windows:

py -m pip install spectral==0.21

Unix/macOs:

pip install spectral==0.21

spectral 0.202019-10-07T00:33:16Windows:

py -m pip install spectral==0.20

Unix/macOs:

pip install spectral==0.20

spectral 0.192017-06-05T00:48:55Windows:

py -m pip install spectral==0.19

Unix/macOs:

pip install spectral==0.19

spectral 0.182016-06-18T22:20:43Windows:

py -m pip install spectral==0.18

Unix/macOs:

pip install spectral==0.18

spectral 0.172015-11-11T16:53:05Windows:

py -m pip install spectral==0.17

Unix/macOs:

pip install spectral==0.17

spectral 0.16.22015-04-27T14:16:34Windows:

py -m pip install spectral==0.16.2

Unix/macOs:

pip install spectral==0.16.2

spectral 0.16.12014-10-28T23:58:26Windows:

py -m pip install spectral==0.16.1

Unix/macOs:

pip install spectral==0.16.1

spectral 0.16.02014-10-19T16:06:54Windows:

py -m pip install spectral==0.16.0

Unix/macOs:

pip install spectral==0.16.0

spectral 0.15.02014-06-05T01:39:05Windows:

py -m pip install spectral==0.15.0

Unix/macOs:

pip install spectral==0.15.0

spectral 0.142014-02-23T05:54:32Windows:

py -m pip install spectral==0.14

Unix/macOs:

pip install spectral==0.14

spectral 0.132014-01-06T01:37:51Windows:

py -m pip install spectral==0.13

Unix/macOs:

pip install spectral==0.13

spectral 0.122013-09-07T02:01:59Windows:

py -m pip install spectral==0.12

Unix/macOs:

pip install spectral==0.12

spectral 0.112013-04-04T01:33:52Windows:

py -m pip install spectral==0.11

Unix/macOs:

pip install spectral==0.11

spectral 0.10.12013-02-23T05:12:39Windows:

py -m pip install spectral==0.10.1

Unix/macOs:

pip install spectral==0.10.1

spectral 0.102013-02-17T19:25:12Windows:

py -m pip install spectral==0.10

Unix/macOs:

pip install spectral==0.10

spectral 0.92013-01-24T00:18:31Windows:

py -m pip install spectral==0.9

Unix/macOs:

pip install spectral==0.9


Step 4: Otherwise, you can install spectral from local archives:

Download the distribution file from spectral-0.22.4.tar.gz or the specific spectral version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_spectral_downloaded_file>

On Unix/macOs:

pip install <path_to_spectral_downloaded_file>


List distribution:


Project link:

- Homepage
- Download