using python3.6 and i'm trying to use pycharm as my IDE. below code works well on the interpreter from command list but not from pycharm.
any help appreciated ?
any help appreciated ?
import tarfile with tarfile.open("sample.tar","w") as tar: for name in [ "foo", "bar", "quux"]: tar.add(name) . .
Error:with tarfile.open("sample.tar","w") as tar:
AttributeError: module 'tarfile' has no attribute 'open'