If I recall correctly, the version of Python that is used when you use the command python is the 2.x version, which doesn't have pip. So if you want to use python in terminal, you should call it as python3 and pip3 for using the pip command.

If you want to set a different Python version as the default one, you can do that. Here is a tutorial that can get you started with that (there's a plethora of other tutorials if this one isn't clear enough): https://opensource.com/article/19/5/python-3-default-mac

For using PyCharm specifically, you can setup the Python interpreter that is used with PyCharm by going to Preferences(or Settings) -> Project:[name of your project] -> Project Interpreter and then chose the desired Python Interpreter from the drop down menu. You can also create a virtual environment there by clicking on the cog icon and choosing Add. This is the preferred way and very convenient to keep installed packages local to your project. After you're done with that, open up PyCharms terminal (at the bottom of your PyCharm window) and you should be able to normally use pip with the command pip.

Alternatively, you can install Python packages in PyCharm using their built in package manager that you can find in the same window where you set your Python Interpreter. Below the dropdown menu you'll see a + sign, where you can click to add packages.

Answer from jure on Stack Overflow
๐ŸŒ
TMS Outsource
tms-outsource.com โ€บ home โ€บ how to install pip in pycharm explained
How to Install Pip in PyCharm Explained
December 21, 2025 - Go to Settings | Python | Interpreter and select the interpreter. Pick pip in the list, click Upgrade on the toolbar, then OK. To upgrade several packages at once, hold Ctrl (Cmd on macOS...
Discussions

I tried to do a pip install in a Pycharm IDE it won't let me.
So it gave you an error. It tried to tell you what was wrong. Don't you think it would be useful to tell everyone else what the error is? More on reddit.com
๐ŸŒ r/learnpython
7
1
September 23, 2022
python - Installing pip in Pycharm 2016.3 - Stack Overflow
I upgraded to the new version of Pycharm. In the terminal, it says bash-3.2$ instead of my username. When I tried to install a library, it said that pip command is not found: bash: pip: command not More on stackoverflow.com
๐ŸŒ stackoverflow.com
September 16, 2018
What's best practice when using an IDE like PyCharm, pip install via terminal or use PyCharm's built in package installer. I'm experiencing some confusing behaviour when I compare the two methods.
Pycharm uses something called virtual environments by default. It creates a folder specific to the project, that has the modules installed there instead of the system python. That is considered good practice because different python projects tend to need different packages at different versions. If you have one script that needs requests version 1.3 and breaks if you run it with any other version, what are you going to do if another script needs version 1.4 and breaks with any other version? Python can't handle two different version packages with the same name, you don't have a way to select which one you want when you do "import requests". So virtual environments help with that, each project sees their own packages, but then to run it from outside you need to run the python inside the proper virtual environment, not the system python. https://realpython.com/python-virtual-environments-a-primer/ More on reddit.com
๐ŸŒ r/learnpython
10
5
January 6, 2023
python - How to import packages into Pycharm using PIP? - Stack Overflow
I'm trying to install a package onto Pycharm using PIP. I am running Anacondas on a Pycharm IDE. I know that you use the project interpreter to install packages and I also know that the package sho... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
YouTube
youtube.com โ€บ codetube
how to install pip in pycharm mac - YouTube
Download this code from https://codegive.com Sure, I'd be happy to guide you through installing pip in PyCharm on macOS. Before we begin, ensure that you hav...
Published: January 2, 2024
Views: 41
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to Install pip in PyCharm | Step-by-Step Tutorial - YouTube
How to Install pip in PyCharm | Step-by-Step TutorialIn this quick tutorial, Iโ€™ll show you how to install pip, the Python package manager, right inside PyCha...
Published: April 20, 2025
๐ŸŒ
YouTube
youtube.com โ€บ watch
Pycharm PIP Install | How to Install Python PIP Packages in Pycharm - YouTube
Let's get started. In this Pycharm PIP install video, we will learn how to identify the PIP version that PyCharm is currently running on as well as how to in...
Published: July 20, 2022
๐ŸŒ
JetBrains
jetbrains.com โ€บ guide โ€บ python โ€บ tutorials โ€บ getting-started-pycharm โ€บ installing-and-managing-python-packages
Installing and Managing Python Packages - JetBrains Guide
March 30, 2023 - PyCharm can manage local or remote environments, pip vs. conda vs. pipenv vs. poetry, and more! We've covered how to install packages from PyPi, but you might also want to install packages from a version control system like GitHub or from your local machine.
๐ŸŒ
YouTube
youtube.com โ€บ programmingknowledge2
How to Install Python PIP Packages On PyCharm - YouTube
### How to Install Python PIP Packages On PyCharmInstalling Python packages in PyCharm is straightforward, thanks to its built-in package management system. ...
Published: July 2, 2024
Views: 2K
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ installing-uninstalling-and-upgrading-packages.html
Install, uninstall, and upgrade packages | PyCharm Documentation
August 17, 2026 - PyCharm provides methods for installing, uninstalling, and upgrading Python packages for a particular Python interpreter. It means that each project has its own set of packages, which is considered a best practice for Python dependency management. By default, PyCharm uses pip to manage project packages.
Find elsewhere
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ pipenv.html
Configure a pipenv environment | PyCharm Documentation
August 17, 2026 - If no pip is discovered, install it as described in the Installation Instructions. Alternatively, you can download and install Python from http://python.org. ... For your convenience, you might add the user baseโ€™s binary directory to your PATH environmental variable. If you skip this procedure, PyCharm will prompt you to specify the path to the pipenv executable when adding a pipenv environment.
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to Install Pip packages using PyCharm ? | How to Install Python PIP Packages in PyCharm - YouTube
#kkjavatutorials #pycharm #pythonAbout this Video:This video talks about How to Install Pip packages using PyCharm ? Follow me on Social network:Facebook: ht...
Published: January 25, 2021
๐ŸŒ
YouTube
youtube.com โ€บ programmingknowledge2
How To Install Python Libraries In PyCharm - YouTube
In this tutorial, you will learn how to install Python libraries in PyCharm, a powerful integrated development environment (IDE) for Python development. Pyth...
Published: July 22, 2023
Views: 51K
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to Install Python PIP Packages in PyCharm - YouTube
In this Python video I am going to show you How to Install Pip packages using PyCharm or How to use PyCharm for installing and managing Pip and PyPI (Python...
Published: October 22, 2018
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ package-installation-issues.html
Package installation issues | PyCharm Documentation
November 28, 2025 - You might encounter a problem when installing a Python package in the project settings or in the Python Package tool window. Eventually, most of the issues are out of IDE control as PyCharm uses the pip package manager to perform the actual installation.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ what's best practice when using an ide like pycharm, pip install via terminal or use pycharm's built in package installer. i'm experiencing some confusing behaviour when i compare the two methods.
r/learnpython on Reddit: What's best practice when using an IDE like PyCharm, pip install via terminal or use PyCharm's built in package installer. I'm experiencing some confusing behaviour when I compare the two methods.
January 6, 2023 -

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.

Top answer
1 of 3
5
Pycharm uses something called virtual environments by default. It creates a folder specific to the project, that has the modules installed there instead of the system python. That is considered good practice because different python projects tend to need different packages at different versions. If you have one script that needs requests version 1.3 and breaks if you run it with any other version, what are you going to do if another script needs version 1.4 and breaks with any other version? Python can't handle two different version packages with the same name, you don't have a way to select which one you want when you do "import requests". So virtual environments help with that, each project sees their own packages, but then to run it from outside you need to run the python inside the proper virtual environment, not the system python. https://realpython.com/python-virtual-environments-a-primer/
2 of 3
2
PyCharm typically uses a virtual environment, which means you're using a totally separate Python interpreter from your system installation when running tests in PyCharm. If you look in the lower right of the PyCharm window, there should be an indicator of which Python interpreter is currently being used. If you click on it, you'll get a drop down of interpreters available, and your system interpreter should be in that list. Personally, if I want to install a package to my system, I use pip from the command line. If I want it installed for use in a specific project, I use PyCharm. But you can configure it to work with some finagling.
๐ŸŒ
Quora
quora.com โ€บ How-do-I-install-Python-packages-in-Pycharm
How to install Python packages in Pycharm - Quora
Answer (1 of 4): You donโ€™t install them into Pycharm. What you do is in your project you associate PyCharm with your projects environment - this should be a virtual environment (I think PyCharm calls them local environments). Virtual environments are not part of Pycharm at all - they are part o...
๐ŸŒ
Python Forum
python-forum.io โ€บ thread-42356.html
updating pip, python - understanding terminal and pycharm.
June 24, 2024 - hi there- i've coded before in some more 'user-friendly' environments, but i'm new to python. i downloaded pycharm because it was recommended and i've been able to execute basic projects within it. having said that, at the moment, i'm attempting ...
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ how-to-install-python-and-pycharm-on-mac
How to install Python and PyCharm on Mac - GeeksforGeeks
November 4, 2023 - Make sure that you have a working pip. Installing Packages in Python on MacOS: Follow the below steps to install python packages on MacOS: Step 1: As the first step, you should check that you have a working Python with pip inst