康达停止工作

时间:2017-03-17 08:35:57

标签: python anaconda conda

我是通过conda安装pymc,它告诉我更新一些文件所以没问题。但是,在更新之后,它给出了OSError,现在,我无法访问任何conda构建命令。现在,当我输入任何conda命令时,它会给我

-bash: conda: command not found

我检查了bash_profile和.bashrc,两者都有适当的conda PATH,并且通过conda安装的大多数模块仍然有效。运行python并检查版本产生

Python 2.7.11 :: Anaconda custom (x86_64)

看着〜/ anaconda / bin,我看到conda文件夹不在那里。有没有什么办法解决这一问题?是重新安装anaconda的唯一解决方案吗?

抱歉,自从我关闭所有窗口后,我没有任何终端输出。另外,我没有意识到我在后台运行Jupyter笔记本,但这不应该有问题。 Jupyter不再运行,并产生错误

[W 01:34:35.979 NotebookApp] Unrecognized JSON config file version, assuming version 1
Traceback (most recent call last):
File "/Users/kaichang/anaconda/bin/jupyter-notebook", line 6, in <module>
sys.exit(notebook.notebookapp.main())
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 595, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/notebook/notebookapp.py", line 1069, in initialize
self.init_configurables()
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/notebook/notebookapp.py", line 837, in init_configurables
parent=self,
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/nb_conda_kernels/manager.py", line 19, in __init__
specs = self.find_kernel_specs() or {}
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/nb_conda_kernels/manager.py", line 129, in find_kernel_specs
self.conda_info = self._conda_info()
File "/Users/kaichang/anaconda/lib/python2.7/site-packages/nb_conda_kernels/manager.py", line 29, in _conda_info
p = subprocess.check_output(["conda", "info", "--json"]
File "/Users/kaichang/anaconda/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/Users/kaichang/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/Users/kaichang/anaconda/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

对不起,我还不完全确定发生了什么。

1 个答案:

答案 0 :(得分:1)

  

查看〜/ anaconda / bin,我看到conda文件夹不是   那里。无论如何要解决这个问题吗?

在回答这个问题时,您可以尝试覆盖您的conda安装:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace clipper
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        public void HandleKeyDownEvent(object sender, KeyEventArgs e)
        {
            MessageBox.Show("It came here");

            if (e.Key == Key.LeftCtrl && e.Key == Key.C)
            {
                MessageBox.Show("You have pressed control + c");
            }
        }
    }
}