【问题标题】:How to set python IDLE to use pythonpath variable in Ubuntu 10.04如何在 Ubuntu 10.04 中设置 python IDLE 以使用 pythonpath 变量
【发布时间】:2010-11-04 11:34:43
【问题描述】:

我在 ~/.bashrc 中设置了一个 pythonpath 变量,当从命令行和 bpython 使用 python 解释器时它工作正常,但 IDLE 无法识别它。

如何配置它以加载 pythonpath 变量?

提前致谢

【问题讨论】:

  • 可能是 askubuntu.com 的候选人

标签: python pythonpath python-idle


【解决方案1】:
  • 您可以升级 Ubuntu,因为它在我的 10.10 机器上运行良好,并且在我的 ~/.profile 中设置了 idle-python2.7 包和 PYTHONPATH(这无关紧要,因为 bash 通常会同时加载两者)
  • 或者您可以按照Setting PYTHONPATH for idle? 更改 /usr/bin/idle* 中的 sys.path

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-02
    • 2011-06-22
    • 1970-01-01
    • 2011-06-23
    • 1970-01-01
    • 2020-07-29
    • 2011-01-18
    • 2011-03-07
    相关资源
    最近更新 更多