Sudo は同じ PATH
を使用していません セキュリティ上の理由から、現在のユーザーとして。 /etc/sudoers
で オプション secure_path
があります これは、sudo.Mine でコマンドを実行するときに使用されるパスを指定します:
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
sudo マンページから:
secure_path Path used for every command run from sudo. If you don't trust the people running sudo to have a sane PATH environment variable you may want to use this. Another use is if you want to have the “root path” be separate from the “user path”. Users in the group specified by the exempt_group option are not affected by secure_path. This option is not set by default.
pip3
コマンドはおそらく sudoers
で定義されたパスにありません ファイル。 secure_path
へのパスを追加することができます または pip3
へのフルパスを提供します 次のようなコマンド:
sudo /path/to/pip3 install django
Meltdown &Spectre - パッチが適用されていないハイパーバイザーのゲスト カーネルにパッチを適用すると、VM 間のメモリ リークが防止されますか?
特に ALIX ボード (AMD Geode) 用の 32 ビット i586/非 PAE をサポートする最新のディストリビューション