2016-08-01 18 views
1

ich weiß nicht, warum ich diesen Fehler selbst installiert i korrekt den Bibliotheken:Import: kann nicht importieren Namen 'show_config'

Traceback (most recent call last): 
File "D:/Doc/Diagnostic-Technology/Browser.py", line 4, in <module> 
    import scipy.stats as stat 
File "D:\Doc\Diagnostic-Technology\scipy\__init__.py", line 61, in <module> 
    from numpy import show_config as show_numpy_config 
ImportError: cannot import name 'show_config' 

Pakete welche ich importiert:

import pandas as pd 
import numpy as np 
import scipy.stats as stat 
import math as math 

Hilfe bitte!

+0

Ich nehme an, dass der Name Ihres Skripts nicht "numpy" ist, korrekt? – DeepSpace

+0

ja ist nicht numpig – MedDiv

Antwort

1

Ich habe das gleiche Problem und löste es auf diese Weise

  1. jede Datei als „numpy.py“ in Ihrem Skript Verzeichnis mit dem Namen finden und es in einer anderen Namen ändern.

  2. jede Datei als „numpy.pyc“ oder jede andere Datei erzeugt Namen löschen, während Sie den Code zu kompilieren.