PyCharm venv failed: ‘no such option: –build-dir’

PyCharm relies on --build-dir to install packages and the flag was removed in the latest pip 20.3.

The fix for PyCharm is ready and will be released this week in 2020.3 release (and backported to 2020.2.5 and 2020.1.5).

The workaround is to downgrade pip to the previous version – close PyCharm and run python -m pip install pip==20.2.4 in the terminal using the corresponding virtual environment.

Update 1

2020.1.5 and 2020.2.5 with the fix were released – please update.

Leave a Comment