Reputation: 189
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?
Upvotes: 13
Views: 46691
Reputation: 686
Add script folder location to path, for individual user installation it will be "C:\Users\<user>\Anaconda3\Scripts"
and for everyone installation it can be found in Program Files "C:\Program Files\Anaconda3\Scripts
"
Upvotes: 0
Reputation: 681
I had it myself because of my username which uses this character "ï" which causes an encoding problem in the PATH variable. Therefore, scripts cannot be found by anaconda. I had to install Anaconda For everyone and not just the current user to solve this problem.
Upvotes: 0
Reputation: 161
Do this worked for me:
conda install pip
and try:
pip install package_name
Upvotes: 16
Reputation: 467
Try typing
python -m pip install --upgrade pip
in CMD
It worked for me.
Upvotes: 1
Reputation: 4347
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
Upvotes: 16
Reputation: 69
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!
Upvotes: 2
Reputation: 1128
Make sure you have the following dir added to PATH:
C:\Python27\Scripts
Upvotes: 5