When using pip to install pybullet, a yellow prompt will appear indicating that our pip version is too low and needs to be upgraded
You are using pip version 8.1.1, however version 23.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
But when we follow the yellow font prompt and enter "pip install --upgrade pip" in the terminal, the terminal will still report an error
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-RdvD44/pip/
Here we give the solution:
1. Upgrade pip
Type in terminal:
sudo wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python get-pip.py
pip -V
(The yellow prompt below ignores it)
A problem occurs: pip -V reports an error "/usr/bin/pip: No such file or directory"
Type in terminal
// 清除缓存 hash -r
If it still doesn't work, try to update it
sudo apt-get update sudo apt-get upgrade
2. Upgrade pip3
Type in terminal:
sudo wget https://bootstrap.pypa.io/pip/3.5/get-pip.py
sudo python3 get-pip.py
pip -V
Problem: The paths obtained by pip -V and pip3 -V are the same
We enter in the terminal:
sudo python get-pip.py
Then restart pip3 -V