pip is not recognized in Anaconda Prompt

后端 未结 7 1259
刺人心
刺人心 2020-12-19 07:44

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

相关标签:
7条回答
  • 2020-12-19 08:28

    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
    
    0 讨论(0)
  • 2020-12-19 08:38

    Try typing

    python -m pip install --upgrade pip
    

    in CMD

    It worked for me.

    0 讨论(0)
  • 2020-12-19 08:41

    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"

    0 讨论(0)
  • 2020-12-19 08:43

    Do this worked for me:

    conda install pip
    

    and try:

    pip install package_name
    
    0 讨论(0)
  • 2020-12-19 08:44

    Make sure you have the following dir added to PATH:

    C:\Python27\Scripts
    
    0 讨论(0)
  • 2020-12-19 08:44

    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.

    0 讨论(0)
提交回复
热议问题