简体   繁体   English

无法在Aquamacs OSX 10.8中设置Python路径

[英]Cannot set Python path in Aquamacs OSX 10.8

I am using these lines in my Preferences.el 我在我的Preferences.el中使用这些行

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

But when I do Cc Cc, it is still picking up default Apple Python(2.7.2 instead of 2.7.3 EPD). 但是,当我执行Cc Cc时,它仍在使用默认的Apple Python(2.7.2而不是2.7.3 EPD)。 EPD is running in terminal as default. EPD默认在终端中运行。 Thanks, 谢谢,

Use this package . 使用这个 And add these lines into Preferences.el 并将这些行添加到Preferences.el

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

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

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