Pymacs无法在Anaconda上找到包裹

时间:2015-04-24 12:49:25

标签: python anaconda pymacs

我注意到Pymacs没有识别通过Anaconda安装的软件包。

注意:刚刚发现了一个解决方案,我会将其作为答案输入。

1 个答案:

答案 0 :(得分:1)

通过<body ng-app="callapp" ng-controller="eController"> </body>

实现了一些故障排除后
var app = angular.module('callapp', []);
app.controller('eController', function($scope, $http, $log) {
    $scope.baseUrl = "http://jsonplaceholder.typicode.com/posts/";
    $scope.urlString = [
      $scope.baseUrl + '1',
      $scope.baseUrl +'2',
      $scope.baseUrl + '3'
    ]; //this is filled with values


    for( var i=0; i<3; ++i) {
       (function(index) {
        var currentURL = $scope.urlString[i];
        $http.get(currentURL)
        .success( function(response) {
            $log.info(index+1, currentURL);
        });
      })(i);
    }
});

app.$inject = ['$scope', '$http', '$log'];

问题在于,Anaconda接管计算机上的 默认解释器,但Pymacs仍在尝试使用ps -eaf | grep python下的全局Python。因此,通过conda安装安装的任何内容对Pymacs都不可见。

解决方案是修改user 5316 5180 47 14:45 pts/3 00:00:04 /usr/bin/python -c import sys; from Pymacs import main; main(*sys.argv[1:]) -f 文件,转到第623行,然后将/usr/bin更改为PYMACS/pymacs.el