How to set python IDLE to use pythonpath variable in Ubuntu 10.04

谁说我不能喝 提交于 2021-02-08 05:47:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!