There’s a Python library, textblob
, that I want to explore, but there is no current port of it for MacPorts. I like to keep as much stuff like this “in the family” as possible, and so I am going to see if a PIP selected by MacPorts will make this easy:
% port search pip
py27-pip @6.1.1 (python, www)
A tool for installing and managing Python packages.
% sudo port install py27-pip
A lot of stuff scrolls by, then:
% port select --list pip
Available versions for pip:
none (active)
pip27
% port select --set pip pip27
Selecting 'pip27' for 'pip' failed: could not create new link
"/opt/local/bin/pip" pointing to "/opt/local/Library/
Frameworks/Python.framework/Versions/2.7/bin/pip": permission
denied
So, sudo
that:
% sudo port select --set pip pip27
Selecting 'pip27' for 'pip' succeeded. 'pip27' is now active.
Check my work:
% which pip
/opt/local/bin/pip