Answers for "unimport a library in python"

3

unimport library python

# Import your library
import time

# Remove your library (change as needed)
# You'll lose access to it
# Python will still keep a copy around in the cache though
del time
# If you want to reload it (> Python 3.4):
import importlib, time
importlib.reload(time)
Posted by: Guest on April-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language