Try to run this command from the system terminal. Make sure that you use the correct version of ‘pip’ installed for your Python interpreter located at
no such option: --build-dir
原因:pycharm安装包依赖--build-dir
参数,然而该参数在pip 20.3
中已删除
解决方法:使用低版本pip
在pycharm中打开terminal
输入:
python -m pip install pip==20.2.4
