Installing Pip with Python 3.5 on FreeBSD

Here is a quick note serves as a self-reminder on how to get pip working or installed on FreeBSD 10.3.

# pkg install python35

There is no package for pip, at least at the time of this writing, on FreeBSD. To have it install, run the following command:

# python3.5 -m ensurepip

While you’re at it, you might as well update pip:

# pip3.5 install --upgrade pip

Thanks to this post in the FreeBSD forum: https://forums.freebsd.org/threads/52702/.

2 thoughts on “Installing Pip with Python 3.5 on FreeBSD

  1. Matt

    The first command you say seems to succeed, but then the second fails. It seems I have a “pip”, but not a “pip3.5”:

    /usr/local/bin % ls -l | grep pip
    -rwxr-xr-x 1 root wheel 211 May 31 2016 pip
    -rwxr-xr-x 1 root wheel 213 Jun 10 2015 pip2
    -rwxr-xr-x 1 root wheel 213 Jun 10 2015 pip2.7
    -rwxr-xr-x 1 root wheel 211 May 31 2016 pip3
    -rwxr-xr-x 1 root wheel 211 May 31 2016 pip3.4

    Reply
    1. kenno Post author

      Hello

      The first command is for installing Python 3.5, and the second one is for installing pip3.5. Since it failed when you ran the 2nd command, that explained why pip3.5 wasn’t available.

      Could you show me the error message when you run this command?

      # python3.5 -m ensurepip

      Kenno

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *