Skip to content

Temporarily restore --build-dir for PyCharm #9193

@sfelixkim

Description

@sfelixkim

Environment

  • pip version: 20.3
  • Python version: 3.8
  • OS: Windows 10

Description
Cannot install any packages when using PyCharm python interpreter.
The virtual environment is created using virtualenv.
No problem when executing pip install [package] on either PyCharm terminal or cmd prompt directly.
Problem resolved when pip is downgraded to 20.2 (had to be done on terminal by pip install pip==20.2.4)

Expected behavior
Install packages successfully.

How to Reproduce

  1. create a new project on PyCharm (then the installed pip version is 20.3)
  2. install any package (e.g. flask) by typing the name and click the "Install Package" button
  3. An error occurs.

Output
executed command:

pip install Flask

Error occurred:

Non-zero exit code (2)

proposed solution:

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 'C:\path\to\project\folder\venv\Scripts\python.exe'.

command output:

Usage:   
  C:\path\to\project\folder\venv\Scripts\python.exe -m pip install [options] <requirement specifier> [package-index-options] ...
  C:\path\to\project\folder\venv\Scripts\python.exe -m pip install [options] -r <requirements file> [package-index-options] ...
  C:\path\to\project\folder\venv\Scripts\python.exe -m pip install [options] [-e] <vcs project url> ...
  C:\path\to\project\folder\venv\Scripts\python.exe -m pip install [options] [-e] <local project path> ...
  C:\path\to\project\folder\venv\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: --build-dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions