端末を介してPythonを使用しようとするたびに、次のメッセージが表示されます。
bash: export: `:/usr/bin': not a valid identifier
a:~$ python
Command 'python' is available in '/usr/bin/python'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
python: command not found
次に、次のコマンドを使用してパスを追加します。
export PATH=$PATH=:/usr/bin
ただし、端末を再実行するたびに同じエラーが発生します。
修正する 次のガイドラインに従った後、問題は解決されました。https://askubuntu.com/a/20955&ここ:https://askubuntu.com/questions/786349/bash-export-not-a-valid-identifier。
ベストアンサー1
この試み:
export PATH="$PATH:/usr/bin"