Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip is not recognized in Anaconda Prompt

I'm using Anaconda on Windows x64. I'm trying to install some library using pip. However, the the command line isn't recognizing pip or any other scripts. The folder that they are all in is in both the user and system PATH variable. pip is there and works if I use the entire file path. Is there a way to fix this?

like image 647
johnidel127 Avatar asked Mar 14 '15 23:03

johnidel127


People also ask

Why is pip not working in command prompt?

The error “'pip' is not recognized as an internal or external command” is encountered because of two main reasons that are. PIP Installation path is not added to the system variables: If you have installed python through prompt then you need to configure PIP path manually.

Can you use pip install in Anaconda prompt?

Both pip and conda are included in Anaconda and Miniconda, so you do not need to install them separately. Conda environments replace virtualenv, so there is no need to activate a virtualenv before using pip. It is possible to have pip installed outside a conda environment or inside a conda environment.


3 Answers

Do this worked for me:

conda install pip

and try:

pip install package_name
like image 52
AjayKhanna Avatar answered Sep 27 '22 19:09

AjayKhanna


When creating your environment, you need to specify pip as a dependency:

conda create --name my-env pip
activate my-env
pip install ...

Installing a new environment with all default anaconda packages:

conda create --name my-env anaconda
like image 39
DieterDP Avatar answered Sep 27 '22 21:09

DieterDP


I worked for me if I start cmd and do cd C:\Users\ComputerName\Python27\Scripts Then I typed in 'pip install "library"' and it worked! If you don't know how to access cmd just press Win+R and type in cmd!

Hope it helped!

like image 41
CoolJWB Avatar answered Sep 27 '22 19:09

CoolJWB