[MacPorts] #59789: explicit execution of pip3.7 results in pip from python 2.7
MacPorts
noreply at macports.org
Sun Dec 1 19:31:40 UTC 2019
#59789: explicit execution of pip3.7 results in pip from python 2.7
-------------------------------------+--------------------
Reporter: duaneellissd | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Keywords: python3.7 pip3.7 pip2.7 | Port:
-------------------------------------+--------------------
I am new to Macports, but very familiar with python on linux etc.
I have a new Mac (Catalina) purchased Nov 2019 (with a real Escape key!)
Installed: "Mac ports" - (new install on Dec 1 2019)
Then tried to install some packages in the system provided "python3.7" via
pip.
At the command line if I type: "pip3.7 install PACKAGE" - I would expect
to have the package installed in Python 3.7 as provided and came with my
Mac, or at least the Python3.7 version that comes with MacPorts
Instead - it redirects to Python2.7
For example: 'pip3.7 install roku' - actually installs the 2.7 version.
'python3.7 -m pip install roku' works and installs the package into Python
3.7
Example command output:
{{{
duane at Duanes-MacBook-Pro ~ %
duane at Duanes-MacBook-Pro ~ %
duane at Duanes-MacBook-Pro ~ % which pip3.7
/usr/local/bin/pip3.7
duane at Duanes-MacBook-Pro ~ % pip3.7 -V
pip 19.3.1 from /Library/Python/2.7/site-packages/pip-19.3.1-py2.7.egg/pip
(python 2.7)
duane at Duanes-MacBook-Pro ~ %
duane at Duanes-MacBook-Pro ~ % python3 -m pip -V
pip 19.0.3 from
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7
/site-packages/pip (python 3.7)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59789>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list