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?
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
Do this worked for me:
conda install pip
and try:
pip install package_name
确保将以下目录添加到 PATH:
C:\Python27\Scripts
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!
Try typing
python -m pip install --upgrade pip
in CMD
It worked for me.
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.
将脚本文件夹位置添加到路径,对于个人用户安装,它将是“ C:\\Users\\<user>\\Anaconda3\\Scripts"
,对于每个人的安装,它都可以在程序文件“ C:\\Program Files\\Anaconda3\\Scripts
”中找到
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.