Die Installation des Pipenv-Moduls schlägt mit aktivierten Lmod-Modulen fehl

454
glmdev

Ich habe vor kurzem mit Cluster Computing / Administration experimentiert. Ich habe einen kleinen RasPi-Cluster mit gemeinsamem Speicher. Auf dem NFS-Speicher wird Python 3.6 in einem Ordner installiert. Ich verwende LMOD, um das dynamische Laden von Modulen zu ermöglichen, und habe es eingerichtet, den Befehl "module" automatisch in bash / fish / zsh zu booten.

Ich habe ein Python-Projekt gestartet und versucht, NumPy mit pipenv zu installieren:

pipenv install numpy

Die Installation schlägt jedoch fehl mit:

ValueError: A valid Fortran version was not found in this string:  Modules based on Lua: Version 7.8.8 2018-10-26 15:12 -05:00 by Robert McLay mclay@tacc.utexas.edu  module [options] sub-command [args ...]  Help sub-commands: ------------------ help prints this message help module [...] print help message from module(s)  Loading/Unloading sub-commands: ------------------------------- load | add module [...] load module(s) try-load | try-add module [...] Add module(s), do not complain if not found del | unload module [...] Remove module(s), do not complain if not found swap | sw | switch m1 m2 unload m1 and load m2 purge unload all modules refresh reload aliases from current list of modules. update reload all currently loaded modules.  Listing / Searching sub-commands: --------------------------------- list List loaded modules list s1 s2 ... List loaded modules that match the pattern avail | av List available modules avail | av string List available modules that contain "string". spider List all possible modules spider module List all possible version of that module file spider string List all module that contain the "string". spider name/version Detailed information about that version of the module. whatis module Print whatis information about module keyword | key string Search all name and whatis that contain "string".  Searching with Lmod: -------------------- All searching (spider, list, avail, keyword) support regular expressions:   -r spider '^p' Finds all the modules that start with `p' or `P' -r spider mpi Finds all modules that have "mpi" in their name. -r spider 'mpi$ Finds all modules that end with "mpi" in their name. 

Ich denke, das liegt daran, dass pipenv versucht, während dieses Schritts ein Programm mit dem Namen 'module' aufzurufen, und anstatt das Programm abzurufen, erhält es den Bootstrap für LMOD. Ich bin mir nicht sicher, wie ich das Problem angehen soll. Das gleiche passiert, wenn ich pip direkt starte:

pip install --user numpy

vollständige Ausgabe: https://pastebin.com/iBcydFfu

Ich bin ratlos in diesem Fall, jede Hilfe wäre dankbar!

0
Sie versuchen, "numpy" auf der ARM-Architektur zu installieren, aber es gibt keine vorgefertigten Räder für ARM, nur für die x64-Plattform. "pip" versucht daher, "numpy" aus Quellcode zu erstellen, und schlägt fehl, weil Sie dafür nichts konfiguriert haben. Um "numpy" aus dem Quellcode zu erstellen, benötigen Sie mindestens einen C-Compiler (ich denke, Sie haben bereits "gcc") und einen Fortran-Compiler ("gfortran77") für den minimalen Build der Erweiterungen. Weitere Informationen finden Sie unter [Erstellen aus Quelle] (https://docs.scipy.org/doc/numpy-1.15.0/user/building.html). hoefling vor 5 Jahren 0
Daneben gibt es noch andere Optionen zur Installation von "numpy" auf RPi, von "apt install python3-numpy" bis [piwheels] (https://www.raspberrypi.org/blog/piwheels/). Wenn Sie nach _numpy arm wheels_ googeln, erhalten Sie auch einige Ergebnisse wie [this] (https://gergely.imreh.net/wheels/numpy/), auch wenn die "numpy" -Version nicht die neueste ist. `pip install numpy --extra-index-url = https: // gergely.imreh.net / wheels /` installiert die benutzerdefinierten Räder von dieser Website. hoefling vor 5 Jahren 0

0 Antworten auf die Frage