1
我通過conda安裝pymc,它告訴我更新一些文件,所以沒問題。但是,更新後,它給了一個OSError,現在我無法訪問任何conda build命令。現在,當我輸入任何命令暢達,它給了我Conda停止工作
-bash: conda: command not found
我檢查的.bash_profile和.bashrc中,且都有相應的路徑爲暢達,並通過暢達安裝大多數模塊仍然有效。運行Python和檢查版本產量
Python 2.7.11 :: Anaconda custom (x86_64)
望着〜/蟒蛇/ bin中,我看到,康達目錄不存在。有沒有什麼辦法解決這一問題?是重新安裝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
對不起,我只是不完全知道是怎麼回事。
這個工作 - 我可以問這是什麼特別的意思嗎?它是否意味着運行腳本,這迫使Miniconda重新安裝在同一目錄中,覆蓋對本地conda軟件包所做的任何更改? – Kai
是的,就是這樣。 –