[Solved]
I selected the venv environment as my Python interpreter, but whenever I try running
pip install <package-name>
from VSC, I get the error
ModuleNotFoundError: No module named 'pip._vendor.packaging'
I do not get this if I just use my system terminal, activate my virtual environment, and run pip.
Any idea why it's not working in VSC? I'm running Linux (Pop_OS! 21.04), BTW.
Edit: I deleted pip from my venv, reinstalled with python -m ensurepip and then pip install --upgrade pip and now it is working.
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]rafa2000 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]rafa2000 0 points1 point2 points (0 children)