Ubuntu - package installer not working
/usr/bin/python -m pip install --user scipy>=1.1
[Errno 2] No such file or directory: '/usr/bin/python -m pip install --user scipy>=1.1': '/usr/bin/python -m pip install --user scipy>=1.1'
/usr/bin/python -m pip install --user scikit-learn>=0.19.2
[Errno 2] No such file or directory: '/usr/bin/python -m pip install --user scikit-learn>=0.19.2': '/usr/bin/python -m pip install --user scikit-learn>=0.19.2'
/usr/bin/python -m pip install --user astropy
[Errno 2] No such file or directory: '/usr/bin/python -m pip install --user astropy': '/usr/bin/python -m pip install --user astropy'
/usr/bin/python -m pip install --user pyopengl
[Errno 2] No such file or directory: '/usr/bin/python -m pip install --user pyopengl': '/usr/bin/python -m pip install --user pyopengl'
/usr/bin/python -m pip install --user numba
[Errno 2] No such file or directory: '/usr/bin/python -m pip install --user numba': '/usr/bin/python -m pip install --user numba'
/usr/bin/python -m pip install --user netCDF4
[Errno 2] No such file or directory: '/usr/bin/python -m pip install --user netCDF4': '/usr/bin/python -m pip install --user netCDF4'
/usr/bin/python -m pip install --user enpt-enmapboxapp
[Errno 2] No such file or directory: '/usr/bin/python -m pip install --user enpt-enmapboxapp': '/usr/bin/python -m pip install --user enpt-enmapboxapp'
Version 3.6.20200327T152216.develop
Comments (9)
-
reporter -
the problem is that this won’t work for windows OSGeo4W QGIS, where sys.executable returns the QGIS executable, not that for python.
What return the following function in your Ubuntu QGIS, @Fabian Thiel ?
import shutil, pathlib, os from difflib import SequenceMatcher def localPythonExecutable() -> pathlib.Path: """ Searches for the local python executable :return: """ candidates = [sys.executable, shutil.which('python3'), shutil.which('python')] candidates = [c for c in candidates if isinstance(c, str) and len(c) > 0] r = os.path.dirname(os.__file__) similarity = [SequenceMatcher(None, r, c).ratio() for c in candidates] pyexe = candidates[similarity.index(max(similarity))] return pathlib.Path(pyexe)
-
dependencycheck.py - modified localPythonExecutable (addresses
#390)→ <<cset 88f50ab61521>>
-
reporter localPythonExecutable()
returns/usr/bin/python3
-
@Fabian Thiel
There is still a problem to installe the *.zip on my unbuntu miniconda qgis. However, the qgis docker imager that I use for the Bitbucket pipeline seems not to have the same problems. Could you therefore test if oyu can install https://bitbucket.org/hu-geomatics/enmap-box/downloads/enmapboxplugin.3.6.20200404T030811.develop.zip? / the most recent develop version on your ubuntu?
(related to
#403) -
I tracked the linux segfault down to:
import numba #or __import__('numba')
-
reporter Installation and starting the Box and import numba works with recent version
-
- changed status to closed
-
deactivated install/update options for numba + numpy and GDAL addresses
#405addresses#403addresses#405addresses#390→ <<cset 104aa32676f1>>
- Log in to comment
Maybe explicitly call python3?
QGIS console: