简体   繁体   English

bash:conda:在Raspberry Pi上安装Miniconda后找不到命令

[英]bash: conda: command not found after installing Miniconda on Raspberry Pi

I followed the instructions here to install Miniconda on my Raspberry Pi. 我按照此处的说明 Raspberry Pi上安装Miniconda。 The install script ran fine but I missed the step about changing the default installation directory. 安装脚本运行良好,但我错过了更改默认安装目录的步骤。 Is that a big problem? 那是个大问题吗? I updated .bashrc with export PATH="/root/miniconda3/bin:$PATH" and rebooted but I still get: 我用export PATH="/root/miniconda3/bin:$PATH"更新了.bashrc并重新启动,但仍然得到:

bash: conda: command not found

What should I do? 我该怎么办?

Debian version: 9.1 Raspberry Pi 2, ARMv7 Processor rev 5 (v7l) Debian版本:9.1 Raspberry Pi 2,ARMv7处理器修订版5(v7l)

Update: 更新:

So, since no-one answered I removed all the installed files at /root/miniconda3 and re-ran the install script, this time entering the following when prompted: 因此,由于没有人回答,因此我删除了/root/miniconda3所有已安装文件并重新运行安装脚本,这一次在出现提示时输入以下内容:

/home/pi/miniconda3

That seems to have solved the problem (although now I have a new problem). 这似乎已经解决了问题(尽管现在我有一个新问题)。

Now when I try to do conda update conda I get: 现在,当我尝试做conda update conda我得到:

Fetching package metadata: ....
Solving package specifications: ...........
Package plan for installation in environment /home/pi/miniconda3:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    setuptools-18.1            |           py34_0         345 KB
    wheel-0.24.0               |           py34_0          77 KB
    pip-7.1.2                  |           py34_0         1.5 MB
    ------------------------------------------------------------
                                           Total:         1.9 MB

The following NEW packages will be INSTALLED:

    pip:        7.1.2-py34_0  (soft-link)
    setuptools: 18.1-py34_0   (soft-link)
    wheel:      0.24.0-py34_0 (soft-link)

Error: Missing write permissions in: /home/pi/miniconda3
#
# You don't appear to have the necessary permissions to update packages
# into the install area '/home/pi/miniconda3'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root --clone=/home/pi/miniconda3

Have you tried with root privileges? 您是否尝试了root特权? ie. 即。 sudo conda update conda 须藤康达更新康达

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM