Visual Studio python pyping

Gast #6510162
Lesenswert?

Hallo und guten Tag,

mit Visual Studio soll ein kleines python Programm erstellt werden.
Dieses Programm soll zunächst nur mal einen ping ausführen.
Dazu habe ich auch das Packet pying installiert
1
import pyping
2

3
r = pyping.ping('google.com')
4

5
if r.ret_code == 0:
6
    print("Success")
7
else:
8
    print("Failed with {}".format(r.ret_code))

Der Kompiler wirft folgenden Fehler aus:

  Nachricht = No module named 'core'
  Quelle = C:\Python_Programme\MyPing\MyPing\MyPing.py
  Stapelüberwachung:
  File "C:\Python_Programme\MyPing\MyPing\MyPing.py", line 2, in 
<module>
    import pyping

Was könnte hier das Problem verursachen?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren