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

发布于 2024-09-30 06:33:24 字数 134 浏览 1 评论 0原文

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

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

提前致谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜雨飘雪 2024-10-07 06:33:24
  • 您可以升级 Ubuntu,因为它在我的 10.10 机器上运行良好,并在我的 ~/.profile 中设置了idle-python2.7 软件包和 PYTHONPATH (这应该不重要,因为 bash 通常会加载两者)
  • 或者您可以更改 sys.path /usr/bin/idle* 按照 将 PYTHONPATH 设置为空闲?
  • 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?
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文