trying to install and use Pip

This question already has an answer here:

  • How do I install pip on Windows? 35 answers

  • If you are on windows:

  • Press the windows button
  • Right click 'computer'
  • Click properties
  • On the left top you see list of stuff, click on advanced system configuration
  • Click system variables
  • Go to path and add: ;c:Python27;C:Python27Scripts
  • Change it to your python path, ; is to start a new variable. Also some things I tell you to click on might have a different (but similar) name, I'm translating this from Dutch that's why :)


    First of all you should check the Python Scripts directory if there is pip is installed. You can find this at c:Python27Scripts folder. If pip is there in directory then added the scripts folder path to the environment's PATH. You will be able to execute the pip from anywhere throughout the system.

    In other way, if pip is available in your scripts directory then go to scripts directory using "cd c:puthon27scripts" and use pip from there.

    Also, if pip is not installed then you need to install the same.

    Note: Change path as per the OS. Above process I mentioned for Windows OS and Python version is 2.7.

    Hope this will helpful to you.


    Depending on the Linux distro:
    - Debian, Ubuntu...:

    apt-cache search pip
    // Will list matching .deb packages
    apt-get install exact_name_of_the_package
    

    - RedHat, CentOS, Fedora...:

    yum search pip
    // Will list matching .rpm packages
    yum install exact_name_of_the_package
    

    - OpenSUSE:

    zypper search pip
    // Will list matching .rpm packages
    zypper install exact_name_of_the_package
    

    All of these have to be installed as root.

    In case you're running on Mac OSX , you may use Homebrew:

    brew install python # that will install pip as well
    

    Windows installation is described in here: How do I install pip on Windows?

    链接地址: http://www.djcxy.com/p/26358.html

    上一篇: 尝试点击安装Django

    下一篇: 试图安装和使用Pip