Is it possible to make a python session aware of new libraries which have been easy_installed since the session was launched?
I have a console which has run for a few days, and finally came up with the (large) result. I realized upon inspecting the results that I would require another package (nltk) for processing, which I installed, but the session can’t import it (new ones can). The problem is, I can’t seem to save the unprocessed results (pickle and marshal give me errors about string lengths) and I really don’t want to re-run the week-long procedure.
You could try loading the new package using the imp module:
You may need to specify a path argument for find_module if python can’t find the newly installed module:
Replacing the last argument with the path that nltk was installed to.