python - ImportError: Cannot import name X - Stack Overflow
stackoverflow.com › questions › 9252543Feb 13, 2012 · Don't name your current python script with the name of some other module you import. Solution: rename your working python script. Example: you are working in medicaltorch.py; in that script, you have: from medicaltorch import datasets as mt_datasets where medicaltorch is supposed to be an installed module; This will fail with the ImportError. Just rename your working python script in 1.