Whenever I run pip
to install the Flask packages like virtualenv
in Ubuntu 16.04, I get this error:
pip install virtualenv
Requirement already satisfied: virtualenv in ./.local/lib/python3.5/site-packages (16.1.0)
No metadata found in ./.local/lib/python3.5/site-packages
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/usr/.local/lib/python3.5/site-packages/virtualenv-16.1.0.dist-info/METADATA'
Here are my pip and python versions:
pip --version
pip 19.0.1 from /usr/.local/lib/python3.5/site-packages/pip (python 3.5)
python3 --version
Python 3.6.8
I already tried almost all that I get from the internet to solve this issue like:
/usr/.local/bin/pip install virtualenv
But I still get the same error.
I also go into the dist folder to copy the metadata.json with METADATA, but there's no metadata.json file inside.
cd /usr/.local/lib/python3.5/site-packages/virtualenv-16.1.0.dist-info/
cp metadata.json METADATA
cp: cannot stat 'metadata.json': No such file or directory
Please help me, I'm stucked with this issue for days.
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…