Home > Software engineering >  pip is installed in pycharm but cant able to run pip commands
pip is installed in pycharm but cant able to run pip commands

Time:05-24

Inside my pycharm package section pip (v:21.3.1) is showing as installed but when running pip commands it shows following error

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

CodePudding user response:

use !pip that might help. Else, try to see pip list and uninstall the package and try uninstalling using '!pip', this takes directly outside the main terminal.

CodePudding user response:

My guess is that you are not inside the Pycharm virtual environment.

Try to go to the terminal/command line and go to the project directory, you should look for 'venv' directory. Than activate the virtual enviorment. terminal: source /venv/Scripts/activate (run activate.sh file)

command line call /venv/Scripts/activate (run activate.bat file)

and then you will be able to run pip

enter image description here

  • Related