-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
type: feature requestRequest for a new featureRequest for a new feature
Milestone
Description
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
- create a new project on PyCharm (then the installed pip version is 20.3)
- install any package (e.g. flask) by typing the name and click the "Install Package" button
- 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
ernybugiernybugi
Metadata
Metadata
Assignees
Labels
type: feature requestRequest for a new featureRequest for a new feature