Python3 install: Use pip3 rather than pip

This commit is contained in:
Shahram Najm 2019-08-09 16:35:59 +01:00
parent 37c9bdf84e
commit 2bbd770272
3 changed files with 9 additions and 9 deletions

View File

@ -110,7 +110,7 @@ ecbuild_add_option( FEATURE PYTHON
REQUIRED_PACKAGES "Python VERSION 2.6 NO_LIBS" NumPy
)
# For Python2 we build our own bindings (using SWIG) in the build directory
# but for Python3 one has to add the eccodes-python from pip AFTER the install
# but for Python3 one has to add the eccodes-python from pip3 AFTER the install
if( PYTHON_VERSION_MAJOR EQUAL 3 )
set( HAVE_PYTHON 0 )
endif()
@ -387,7 +387,7 @@ add_subdirectory( fortran )
if (PYTHON_VERSION_MAJOR GREATER 2)
# Python3 is no longer built with SWIG but is a separate
# package. User should do: pip install eccodes-python
# package. User should do: pip3 install eccodes-python
#add_subdirectory( python3 )
set( ECCODES_PYTHON_DIR "python3" )
else()
@ -479,6 +479,6 @@ ecbuild_info(" | Please note: |")
ecbuild_info(" | For Python3 support, first install |")
ecbuild_info(" | ecCodes and then install the Python |")
ecbuild_info(" | bindings from PyPI with: |")
ecbuild_info(" | $ pip install eccodes-python |")
ecbuild_info(" | $ pip3 install eccodes-python |")
ecbuild_info(" +--------------------------------------+")
ecbuild_info("")

View File

@ -33,10 +33,10 @@ However it requires that cmake be installed on your system.
> ctest
> make install
To add the Python3 bindings, use pip install from PyPI as follows:
> pip install eccodes-python
To add the Python3 bindings, use pip3 install from PyPI as follows:
> pip3 install eccodes-python
or
> pip install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
> pip3 install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
You can also pass options to the cmake command above. Some typical examples are:

View File

@ -53,13 +53,13 @@ INSTALLATION
make install
```
To add the Python3 bindings, use pip install from PyPI as follows:
To add the Python3 bindings, use pip3 install from PyPI as follows:
```
pip install eccodes-python
pip3 install eccodes-python
```
or
```
pip install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
pip3 install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
```