问题
I have set a pythonpath variable in my ~/.bashrc and it works fine when using python interpreter from the command line and bpython, but IDLE is not recognizing it.
How can I configure it to load the pythonpath variable?
Thanks in advance
回答1:
- You can upgrade Ubuntu, because it works fine on my 10.10 machine with the idle-python2.7 package and PYTHONPATH set in my ~/.profile (which shouldn't matter because bash normally loads both)
- Or you can change sys.path in /usr/bin/idle* as per Setting PYTHONPATH for idle?
来源:https://stackoverflow.com/questions/4096223/how-to-set-python-idle-to-use-pythonpath-variable-in-ubuntu-10-04