Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/334.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Aquamacs OSX 10.8中设置Python路径_Python_Macos_Environment Variables - Fatal编程技术网

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

无法在Aquamacs OSX 10.8中设置Python路径,python,macos,environment-variables,Python,Macos,Environment Variables,我在我的首选项中使用了这些行 (add-to-list 'load-path "~/Library/Enthought/Canopy_64bit/User/bin") (require 'python-mode) (setenv "PYTHONPATH" "~/Library/Enthought/Canopy_64bit/User/bin") (require 'exec-path-from-shell) (exec-path-from-shell-initialize) 但当我使用C-C-

我在我的首选项中使用了这些行

(add-to-list 'load-path "~/Library/Enthought/Canopy_64bit/User/bin")
(require 'python-mode)
(setenv "PYTHONPATH" "~/Library/Enthought/Canopy_64bit/User/bin")
(require 'exec-path-from-shell)
(exec-path-from-shell-initialize)
但当我使用C-C-C时,它仍然使用默认的Apple Python(2.7.2而不是2.7.3 EPD)。默认情况下,EPD正在终端中运行。谢谢,用这个。并将这些行添加到Preferences.el中

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