36
votes

Possible Duplicate:
Unload a module in Python

After importing Numpy, lets say I want to delete/remove numpy import reference

import sys 
import numpy as np 

doMe()
   np.something()

#unimport np
#remove numpy from memory
1
Zaur, you would need to do that if you need to downgrade a package for different functionality. - JCM

1 Answers

40
votes