pip command not found
This error occurs when the pip command is not installed or not added to the system path.
To fix this error, you need to install pip.
For Ubuntu or Debian-based systems, you can use the following command to install pip:
sudo apt-get install python-pip
For CentOS, Fedora, or RHEL-based systems, you can use the following command to install pip:
sudo yum install python-pip
If you are using MacOS, you can install pip using Homebrew with the following command:
brew install python
Once pip is installed, you can check whether it is added to the system path by running the command:
echo $PATH
If pip is not added to the system path, you can add it by adding the following line to your shell configuration file:
export PATH=$PATH:/usr/local/bin
After adding this line, you need to reload your shell configuration file by running the command:
source ~/.bashrc
or
source ~/.bash_profile
depending on which shell configuration file you are using
原文地址: https://www.cveoy.top/t/topic/hbGS 著作权归作者所有。请勿转载和采集!