bash: pip: command not found

bash: pip: command not found

Asked on November 10, 2018 in Python.
Add Comment


  • 3 Answer(s)

    Why not simply do sudo easy_install pip or if this can be for python a pair of.6 sudo easy_install-2.6 pip?

        This installs pip mistreatment the default python package installer system and saves you the trouble of manual set-up all at identical time.

         This will permit you to then run the pip command for python package installation because it are going to be put in with the system python. I conjointly advocate once you’ve got pip mistreatment the virtualenv package and pattern. 

    Answered on November 10, 2018.
    Add Comment

    Use setuptools to put in pip:

    sudo easy_install pip
    

    (I apprehend the higher than a part of my answer is redundant with klobucar’s, however i am unable to add comments yet)

    thus here’s a solution with an answer to sudo: easy_install: command not found on Debian/Ubuntu:

    sudo apt-get install python-setuptools
    

    Also, for python3, use easy_install3 and python3-setuptools.

     

     

    Answered on November 10, 2018.
    Add Comment

    First of all: attempt pip3 rather than pip. Example:

    pip3 --version
    pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python three.6)
    

          pip3 ought to be put in mechanically along with Python3.x. The documentation hasn’t been updated, thus merely replace pip by pip3 within the directions, once putting in Flask as an example.

    Now, if this does not work, you would possibly got to install pip on an individual basis.

    Answered on November 10, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.