This is depending on your project settings, the project interpreter to be specific.
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 environmentassociated 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:
- Settings -> Project -> Project Interpreter
- Click the cogwheel / gear icon right-side the interpreter dropdown
- Select "Add Local..." -> Virtualenv Environment
- Select a path as a root directory for the new environment
- Select base interpreter you want to use
- Tick the checkbox "Make available to all projects"
- Click the "OK" button to save the new environment
This is depending on your project settings, the project interpreter to be specific.
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 environmentassociated 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:
- Settings -> Project -> Project Interpreter
- Click the cogwheel / gear icon right-side the interpreter dropdown
- Select "Add Local..." -> Virtualenv Environment
- Select a path as a root directory for the new environment
- Select base interpreter you want to use
- Tick the checkbox "Make available to all projects"
- Click the "OK" button to save the new environment
You can download Package from the Pycharm IDE
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.
python - Installing libraries for every project in Pycharm - Stack Overflow
module - How can installed packages of a Python project in Pycharm IDE be used in every new Projects - Stack Overflow
How to use the same python package in multiple pycharm projects?
Installing Packages
To fix your issue, I suggest you should create a Virtualenv Environment and make it available for all projects:
File>>Settings
Project>>Project Interpreter >>>>>Add

New environment/Existing Environment >> [x]Inherit global site-packages
[x] Make available to all projects >> [OK]

Then install your modules/libs in the Project Interpreter box with the symbol +

Whenever you change the project, just pick that venv in Project Interpreter and use as normal
Go to File > Settings. Then from left side go to Project > Project Interpreter. Now, from the Project Interpreter dropdown, you can select your desired environment.
Open File -> Settings
Select Project Interpreter than go to the gear wheel in the upper right corner and select add.
Use Virtual Environment, select your prefered base Interpreter in my case 3.6 and add the name for the virtual environment and where you want to store it
If you don't need to I would suggest to not inherit global site packages But you should select make it available to other projects.
Confirm it.

Afterwards the virtual env should be selected in project interpreter if not select it from the list. Right beside the List you see a plus, you can use this to add new packages with python (doesn't work all the time for me -> then use terminal)

I really thank everyone who made effort to attempt my question. After much trial, I was able to resolve it and I will post how I resolved it step-by-step to enable others like me understand better.
First, when installing our Pycharm, a folder is automatically created for storing every project we shall be working on, this folder becomes the database of our projects. In most cases, folder is stored in our C:\drive.
Now, open your pycharm window (I mean your working template), File ----> open (this diplays the folders in your drive) ----> select the folder for storing your Pycharm projects and click ok. NOTE: do not open this folder to show your projects, just click on it and click ok. There are some situations whereby the Pycharm projects folder is already displayed on our pycharm window, this is because we already chose it during our installation. In a case like this, no need trying to bring it to the Projects displayed in our window as it'd already be displayed in the Projects in our window.
Your Pycharm projects folder will then display in your pycharm window under Projects.
Click on the Pycharm projects folder under your Projects and it will be highlighted blue.
Go to settings ----> Project: (your pycharm projects folder will also show here) By the right, select Project interpreter.
Do your normal installation of packages by clicking on the + sign at the right extreme (that is if you haven't installed any package before)
Then configure your environment setting by making sure the boxes for inheriting global site packages and making this available to other projects are checked.
When configuring your environment setting for the pycharm projects folder, the location path should also end with your pycharm projects folder\venv ; please do not include the name of any particular project in the location path as doing this will make these changes effective in only that particular project files.
Then click ok.
Whatever project your create under the Pycharm projects folder will then inherit every packages you've installed in the pycharm project settings.
I believe this will help those who have been having difficulty resolving this.
Do i have to install a package everytime im going to use it in a diffferent project? or can I just instal it once and have it in every project? Im installing through the UI in File, settings, python interpreter, and then installing numpy. Is this the correct way? im new to this, thanks in advance!
Python 3.9 version
PyCharm Community Edition 2020.3.5 x64
I pip installed from CMD a python package "pip install example" and it installs to "site-packages" folder where python 3.11 is installed to.
That works and my code in pycharm runs.
Then I uninstalled in cmd using command "pip uninstall example" and reinstalled the package from within pycharm's package installer window (hit the + button, search package click install). First thing I noticed is I can't find where the package was installed to in my computer.
After that if I click run, everything works, but I can no longer run that script from the terminal as it says the package is not installed.
From now on then, should I completely ignore pycharm package install functionality and just install packages via pip from the terminal either in pycharm or CMD? Is this the done thing?
Edit: After deleting my test project to see if the below works, it doesn't! My new pycharm test project is pointing at my python install, where example package is still installed, but clicking the run button (or shift f10) yields the "no module named 'example' error. But it will run from the terminal. Please help!
I'm thinking that if I pip install via the terminal from now on, those packages will always be available so long as I point pycharm to where python is installed on my computer when creating a new project.
Thanks for reading, any advice here would be greatly appreciated.
I'm using PyCharm, and when I install a package for some reason it only immediately gets applied to one of my projects, even if I have multiple open and am working on a different project upon installation.
Note that I'm talking about installation of a package using pip. When I use pip install and install something, that package will only be immediately usable on one of my projects instead of all of them.
For some reason PyCharm says "package installed successfully" even when I'm just adding an existing package to a different project, which is a bit confusing. I've been referring to "installing" packages for specific projects as "applying" them to that project.
How can I choose which projects has the package applied to it by default? And why do I have to go into settings and manually apply the package to my other projects, instead of it being available in my other projects from the start?
Any help is appreciated!