Seite 2 von 2

Re: Neues Theli

BeitragVerfasst: Montag 19. Mai 2014, 22:04
von Holger
Knickohr hat geschrieben:Na Holger, Du bist doch mit Theli groß geworden :mrgreen:


Hallo Thomas,

mit Theli bin ich nicht groß geworden sondern nur ....... schnell viel älter. :D :D :D

Aber die große Unbekannte heißt Linux, da versteh ich überhaupt nix.

Re: Neues Theli

BeitragVerfasst: Dienstag 20. Mai 2014, 04:36
von mischa
Holger hat geschrieben:ii python-pip 1.0-1build1 alternative Python package installer


dürfte wohl auch nicht die Erklärung für mein Problem sein. :?[/quote]

doch!
Code: Alles auswählen
sudo apt-get install python-pip


danach sollte 'pip' vorhanden sein.

mischa

Re: Neues Theli

BeitragVerfasst: Dienstag 20. Mai 2014, 05:52
von Holger
Hallo Mischa,

ja ja ..... das Leben könnte so einfach sein wenn es nicht meinen Computer geben würde. :D

pip ist vorhanden ....
aber python-astropy wird nicht gefunden.

holger@holger-desktop:~$ sudo apt-get install python-pip
[sudo] password for holger:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
python-pip ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
holger@holger-desktop:~$ sudo apt-get install python python-dev python-numpy python-scipy python-astropy
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
E: Paket python-astropy kann nicht gefunden werden
holger@holger-desktop:~$

Re: Neues Theli

BeitragVerfasst: Dienstag 20. Mai 2014, 09:24
von Knickohr
mischa hat geschrieben:
Holger hat geschrieben:ii python-pip 1.0-1build1 alternative Python package installer


dürfte wohl auch nicht die Erklärung für mein Problem sein. :?


doch!
Code: Alles auswählen
sudo apt-get install python-pip


danach sollte 'pip' vorhanden sein.

mischa

Hähhh ???

Ist doch schon installiert, da sind 2i vor dem Paket :shock: :mrgreen:

Holger, such doch mal nach dem Paket python-astrophy :

sudo dpkg --list | grep -i astropy

Thomas

Re: Neues Theli

BeitragVerfasst: Dienstag 20. Mai 2014, 12:47
von Holger
Hallo Thomas,

dann kommt nur eine leere Zeile bei mir.
Keine Fehlermeldung ...... nichts.

Re: Neues Theli

BeitragVerfasst: Dienstag 20. Mai 2014, 13:01
von Holger
so, jetzt habe ich mich mal versucht auf der Seite astropy.org einzulesen.

der erste Versuch brachte folgendes:
holger@holger-desktop:~$ pip install astropy
Downloading/unpacking astropy
Running setup.py egg_info for package astropy

Requirement already satisfied (use --upgrade to upgrade): numpy>=1.5.0 in /usr/lib/python2.7/dist-packages (from astropy)
Installing collected packages: astropy
Running setup.py install for astropy
building 'astropy.utils._compiler' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c astropy/utils/src/compiler.c -o build/temp.linux-x86_64-2.7/astropy/utils/src/compiler.o
astropy/utils/src/compiler.c:1:20: schwerwiegender Fehler: Python.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/holger/build/astropy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-_XpT4F-record/install-record.txt:
running install

running build

running build_py

copying astropy/wcs/include/wcslib/cel.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/lin.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/prj.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/spc.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/spx.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/tab.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/wcs.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/wcserr.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/wcsmath.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

copying astropy/wcs/include/wcslib/wcsprintf.h -> build/lib.linux-x86_64-2.7/astropy/wcs/include/wcslib

running build_ext

building 'astropy.utils._compiler' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c astropy/utils/src/compiler.c -o build/temp.linux-x86_64-2.7/astropy/utils/src/compiler.o

astropy/utils/src/compiler.c:1:20: schwerwiegender Fehler: Python.h: Datei oder Verzeichnis nicht gefunden

Kompilierung beendet.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/holger/build/astropy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-_XpT4F-record/install-record.txt failed with error code 1
Storing complete log in /home/holger/.pip/pip.log
holger@holger-desktop:~$


der zweite Versuch mit download und entpacken brachte das zu Tage:
holger@holger-desktop:~$ cd /home/holger/pip-1.5.6/
holger@holger-desktop:~/pip-1.5.6$ python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-2715.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python2.7/dist-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

http://packages.python.org/distribute/easy_install.html

Please make the appropriate changes for your system and try again.

holger@holger-desktop:~/pip-1.5.6$

Re: Neues Theli

BeitragVerfasst: Dienstag 20. Mai 2014, 19:05
von mischa
Du musst das pip Kommando natuerlich mit einem 'sudo' davor ausfuehren, sonst kann es nicht in die systemweiten Pfade, in denen DU keine Schreibberechtigung hast, installiert werden.

mischa