[MacPorts] #63067: Default python environment and package installation

MacPorts noreply at macports.org
Thu Jun 17 17:37:00 UTC 2021


#63067: Default python environment and package installation
----------------------+--------------------
  Reporter:  forrie   |      Owner:  (none)
      Type:  request  |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:           |
----------------------+--------------------

Comment (by reneeotten):

 as I asked before, please give the exact command of what you tried to
 install...

 The port {{{ansible}}} doesn't install because it is replaced by {{{py-
 ansible}}}. So I am assuming for now that you did {{{sudo port install
 py39-ansible}}}. That port will automatically install its dependency
 ({{{py39-ansible-base}}}), which contains the executables.

 There are indeed two sets of them: one in the Python.framework directory
 and the others in {{{${prefix}/bin}}}, the latter ones have the postfix
 {{{-3.9}}} or something else depending on which Python version you
 installed them for. So you can run the program by doing {{{ansible-3.9}}}
 or, as the instructions tell you when installing the port you can select
 the version that you want to run when just typing {{{ansible}}}.
 Admittedly, these instruction somethings get buried in the full MacPorts
 output so you might have missed them; you can look at them again by doing
 {{{port notes py39-ansible-base}}}.

 This is the way it is supposed to work in MacPorts; since you often can
 install packages for different Python versions at the same time the Python
 version gets added to the files installed in {{{bin}}}. For the most
 commonly used packages there is often a {{{select}}} option that can be
 used to select the version you would like to run without specifying the
 version.

 I hope this helps! If it doesn't answer your question you will have to be
 more specific about what you exactly did and what the (unexpected) result
 is, as I said above as well.

-- 
Ticket URL: <https://trac.macports.org/ticket/63067#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list