I'm doing a fresh install on a new Windows 10 laptop. I installed Python 3.9 and PyCharm Community 2020.2, then started a new project. In the project settings, I created a new project interpreter in a venv, inside the /venv folder. Everything looks to get set up correctly, but I can't install anything to the project interpreter. When I try to do so, e.g. when I try to install pandas or anything else, I get None-zero exit code (2) with the following message:
Usage: D:\MyProject\project\venv\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\MyProject\project\venv\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\MyProject\project\venv\Scripts\python.exe -m pip install [options] [-e] ...
D:\MyProject\project\venv\Scripts\python.exe -m pip install [options] [-e] ...
D:\MyProject\project\venv\Scripts\python.exe -m pip install [options] <archive url/path> ...no such option: --build-dir
When I go to the Terminal and just 'pip install pandas' per PyCharm's 'proposed solution', it installs fine, and pandas and its dependencies appear as usual in the list of installed modules in the interpreter. I've not encountered this before, and don't see anywhere in the settings where I can specify how exactly PyCharm will invoke pip in this situation.