简体   繁体   中英

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.

How can I configure it to load the pythonpath variable?

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)
  • Or you can change sys.path in /usr/bin/idle* as per Setting PYTHONPATH for idle?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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