简体   繁体   English

如何在Ubuntu 10.04中设置python IDLE以使用pythonpath变量

[英]How to set python IDLE to use pythonpath variable in Ubuntu 10.04

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. 我在〜/ .bashrc中设置了一个pythonpath变量,当在命令行和bpython中使用python解释器时,它工作正常,但IDLE无法识别它。

How can I configure it to load the pythonpath variable? 如何配置它以加载pythonpath变量?

Thanks in advance 提前致谢

  • 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) 您可以升级Ubuntu,因为它可以在我的10.10机器上正常工作,并在我的〜/ .profile中设置了idle-python2.7软件包和PYTHONPATH(这无关紧要,因为bash通常会同时加载两者)
  • Or you can change sys.path in /usr/bin/idle* as per Setting PYTHONPATH for idle? 或者您可以按照将PYTHONPATH设置为空闲状态来更改/ usr / bin / idle *中的sys.path

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM