我正在尝试为所有用户安装anaconda,在ubuntu18.04上。我在/root/ anaconda 3上安装了anaconda。之后,我在/etc/环境中编辑了路径,以包含anaconda路径。当我以用户身份登录时,我可以看到路径为
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/root/anaconda3/bin:/snap/bin: No such file or directory我不知道为什么会出现No这样的文件或目录。当我试图运行python时,它不会检测到python。
Command 'python' not found, but can be installed with:
apt install python3
apt install python
apt install python-minimal
Ask your administrator to install one of them.
You also have python3 installed, you can run 'python3' instead.我想用anconda的蟒蛇。我可以使用anaconda作为根用户,但不能作为其他用户使用。如何使它对所有用户都有效?
发布于 2020-01-28 07:23:37
通常,/root是root用户的主目录,仅供root用户访问。解决此问题的一种方法是更改此根目录的权限。
sudo chmod -R 777 /root但是要警告,这样做是不明智的,因为更改对系统至关重要的文件可能会导致它变得不稳定。
其他方法是在不同的目录中安装anaconda,并将权限分配给install目录。这样做的说明可以在这链接上找到。
希望这能有所帮助。
https://stackoverflow.com/questions/59938122
复制相似问题