【问题标题】:Cannot set Python path in Aquamacs OSX 10.8无法在 Aquamacs OSX 10.8 中设置 Python 路径
【发布时间】:2014-03-10 08:24:09
【问题描述】:

我在我的 Preferences.el 中使用这些行

(add-to-list 'load-path "~/Library/Enthought/Canopy_64bit/User/bin")
(require 'python-mode)
(setenv "PYTHONPATH" "~/Library/Enthought/Canopy_64bit/User/bin")

但是当我执行 C-c C-c 时,它仍然使用默认的 Apple Python(2.7.2 而不是 2.7.3 EPD)。 EPD 默认在终端中运行。谢谢,

【问题讨论】:

    标签: python macos environment-variables


    【解决方案1】:

    使用这个package。并将这些行添加到 Preferences.el

    (require 'exec-path-from-shell)
    (exec-path-from-shell-initialize)
    

    【讨论】:

      猜你喜欢
      • 2014-08-23
      • 1970-01-01
      • 1970-01-01
      • 2013-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-11
      • 1970-01-01
      相关资源
      最近更新 更多