Error: python not found
作者:XD / 发表: 2023年5月26日 03:21 / 更新: 2023年5月26日 03:21 / 编程笔记 / 阅读量:708
We need to add the Python path to the system's PATH. Here are the steps:
-
Open the ~/.bashrc file in a text editor.
vi ~/.bashrc
-
Press "i" to add the Python interpreter to the system's PATH at the end of the file.
export PATH=$PATH:/home/xxx/miniconda3/bin/
-
Press "ESC" and type "!wq " to save the file and exit the editor.
-
Update the changes.
source ~/.bashrc