You are on page 1of 2

09/11/2022, 02:39 python - How do I install packages in PyCharm for all projects?

- Stack Overflow

How do I install packages in PyCharm for all projects?


Asked
4 years, 10 months ago Modified
2 years, 5 months ago Viewed
59k times

I use PyCharm and all the initial settings are okay.Simple package installation is working.
Then why do I need to reinstall a package for each project? Is there any way to install the
35 packages for all projects from now on?

python pycharm

Share Improve this question edited Nov 26, 2018 at 10:03 asked Dec 12, 2017 at 9:53
Follow Daniel Heilper Giladbi
1,133 2 17 34 1,802 3 19 30

1 are you using a different VE for each project?


– N. Ivanov
Dec 12, 2017 at 9:55

Sorted by:
2 Answers
Highest score (default)

This is depending on your project settings, the project interpreter to be specific.

47 The project interpreter can be set to one of the following:

an interpreter installed globally on your system

an interpreter in a shared virtual environment

an interpreter in a virtual environment associated with a project

Now the approach I'd recommend would be to create a shared virtual environment where
you install your packages to, and use this environment for all your project.

That way, you have the desired result of needing to install your packages only once, but still
have an environment isolated from your system environment.

To create such an environment, follow these steps:

1. Settings -> Project -> Project Interpreter

2. Click the cogwheel / gear icon right-side the interpreter dropdown


Your privacy
3. Select "Add Local..." -> Virtualenv Environment
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose
information in accordance
4. Select witha our
a path as rootCookie Policy
directory . the new environment
for

5. Select base interpreter you want to use


Accept all cookies Customize settings
6. Tick the checkbox "Make available to all projects"

https://stackoverflow.com/questions/47769641/how-do-i-install-packages-in-pycharm-for-all-projects 1/2
09/11/2022, 02:39 python - How do I install packages in PyCharm for all projects? - Stack Overflow

7. Click the "OK" button to save the new environment

Share Improve this answer Follow answered Dec 12, 2017 at 12:40
bgse
8,044 2 38 39

3 Step 5.5. Check-on option "Inherit global site-packages", or face an implosion regarding setuptools not
being installed. (Experienced with Python 3.7, pip 10.0.1 & PyCharm 2018.2.2 (Community Edition) on
Windows 10, Version 10.0.17134 Build 17134)
– James T Snell
Aug 28, 2018 at 0:47

This saved me a lot of time. Thanks.


– SSharma
Aug 22, 2019 at 9:35

2 I have followed the steps but "ok" button is disabled. On the environment path it is showin that
"Environment Directory can be empty"
– Shravan Yadav
Jul 1, 2020 at 12:41

You can download Package from the Pycharm IDE

2 1. Open Pycharm and Go to File


2. Click on Settings
3. On left Side, You will find Projects Option. Click & Expend it

4. Click on Interpreter

5. A list of installed package will be shown

6. On Right Side, You will see a + button. Click This to install new package

7. A window will appear with Search bar, then search your package name and hit
install button.

All steps are taken from this One minute Video.

Share Improve this answer Follow answered May 31, 2020 at 6:31
Muhammad Faizan
Khan
9,407 13 91 175

Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose
information in accordance with our Cookie Policy.

Accept all cookies Customize settings

https://stackoverflow.com/questions/47769641/how-do-i-install-packages-in-pycharm-for-all-projects 2/2

You might also like