export PATH=/opt/local/bin:/opt/local/sbin:$PATH export PYTHONPATH="/Users/kailash/pythonworks/"
After saving the .profile file, the commands just added must be read and executed by the system. For that source command comes handy.
$ source .profile
That's it, hopefully you will be able to import modules inside your python path permanently.
0 comments:
Post a Comment