Anaconda不会启动和阻止加载应用程序

时间:2020-10-10 14:24:52

标签: python anaconda kali-linux

嗨,我正在使用kali linux 我按照Anaconda documentation在我的机器上下载并设置Anaconda3,然后点击终端anaconda-navigator时,anaconda开始加载应用程序,但没有其他反应。 下面的屏幕截图可以说明发生了什么

enter image description here

1 个答案:

答案 0 :(得分:1)

尝试一下

conda update anaconda-navigator

如果上述方法不起作用, // Python 3.8的解决方案,其他版本的过程可能有所不同。

Edit the file: .../anaconda3/lib/python3.8/site-packages/anaconda_navigator/api/external_apps/vscode.py"

Add "DISTRO_NAME = None" at line 159 in the function _find_linux_install_dir.

154|    def _find_linux_install_dir(self):
155|        INST_DIR = None
156|        exe = os.path.join('/snap', 'bin', 'code')
157|        if os.path.lexists(exe):
158|            INST_DIR = '/snap'
159|        DISTRO_NAME = None   //add this line
160|        for distro in self.distro_map.keys():
161|            _distro_regex = ".*{}/([^ ]*)".format(distro)
162|            m = re.match(_distro_regex, self._conda_api.user_agent)
163|            if m:
164|                DISTRO_NAME = distro
165|                DISTRO_VER = m.group(1)
166|                break