bash:conda:在Raspberry Pi

时间:2018-02-10 21:00:06

标签: bash path raspberry-pi install miniconda

我按照说明here在我的Raspberry Pi上安装Miniconda。安装脚本运行正常,但我错过了更改默认安装目录的步骤。这是一个大问题吗?我用export PATH="/root/miniconda3/bin:$PATH"更新了.bashrc并重启,但我仍然得到:

bash: conda: command not found

我该怎么办?

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

更新

因此,由于没有人回答我删除了/root/miniconda3处的所有已安装文件并重新运行安装脚本,这次在提示时输入以下内容:

/home/pi/miniconda3

这似乎已经解决了问题(尽管现在我遇到了一个新问题)。

现在,当我尝试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

1 个答案:

答案 0 :(得分:0)

您是否尝试过root权限? 即。 sudo conda update conda