Ich habe irgendwie ein Chaos mit meinen Python-Versionen und oder Pip-Version. Als Folge habe ich Probleme, numpy zu installieren. Ich verwende die folgende Standard-Python-Versionmit mehreren Versionen von Pip zu installieren, um numpy
>>> print(sys.version)
3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118]
>>>
ich mehrere Python/Pip-Version installiert haben:
[email protected]:~$ /usr/bin/python
python python2.6 python2.7-config python3 python3.5-config python3.5m-config python3m python-config pythontex3
python2 python2.7 python2-config python3.5 python3.5m python3-config python3m-config pythontex
[email protected]:~$
Wenn ich will, importieren numpy ich folgendes erhalten:
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'numpy'
jedoch Das Ausführen einer pip3.5-Installation zeigt:
[email protected]:~$ sudo pip3.5 install numpy
Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages
[email protected]:~$
Etwas scheint fischig, aber ich weiß nicht, was und wie es gelöst werden soll. Hilfe wäre willkommen
Dank für Ihre Antwort. Ich bin ein bisschen verwirrt :) also Pip und Python-Version sind nicht verknüpft? Wie würde ich dann eine numpy für Python 3.5 installieren? – math
Pip ist ein Paketverwaltungssystem. vielleicht könnte dies klären: https://en.wikipedia.org/wiki/Pip_(package_manager) – Charmander35
sicher, dass ich habe, aber wenn pip3.5 ausführen installieren numpy warum installiert es nicht numpy für Python 3.5? Es sagt, es ist bereits installiert, aber es ist nicht. – math