module - Changes in Python scripts are not accepted -


i'm new python, think question fundamental , asked few times before cannot find (maybe because not know how search problem). installed module in python (reportlab). wanted modify python script in module seems python interpreter not notice updates in script. ironically import successful although python should not find package because deleted before. python uses cache or other storage modules? how can edit modules , use updated scripts?

from saying, downloaded package , installed using either local pip or setup.py. when so, copies files python package directory. after install, can delete source folder because python not looking here.

if want able modify, edit, , see changes, have install in editable mode. inside main folder do:

python setup.py develop 

or

pip install -e . 

this create symbolic link python package repository. able modify sources.

careful changes effective, have restart python interpreter. cannot import again module or whatever else.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -