I am trying to import fabric.api
and having issues.
I installed fabric using pip and it works fin when I run import fabric
in the interpreter.
But when I do from fabric.api import *
it spews out an error saying "No module named api".
I am using Python 2.7. What am I missing here?
Python 2.7.10 (default, Oct 6 2017, 22:29:07)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> version
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'version' is not defined
>>> import fabric
>>> import fabric.api
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named api
>>> from "fabric.api" import *
File "<stdin>", line 1
from "fabric.api" import *
^