I tried to install the python package on my pc using the pip install
I got this error:
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'opt/anaconda3/lib/python3.8/site-packages/jmespath-0.10.0.dist-info/METADATA'
How I solved it
When I checked that location it didn't contain METADATA, but another folder named pip-21.3.1.dist-info That folder had several files in it including METADATA
Just move it outside into the above directory and the Problem is fixed. pip3 install --upgrade pip And I could install the python library again.
Navigate to the site-packages directory and delete