Skip to content

Python is not recognized correctly #5

@ghost

Description

My Environment:

  • MacOS 12.0.1 aka Monterey
  • Homebrew
  • JDK 11
  • Python 3.9
  • pip 21.3.1

My Problem:

When the path to the Python installation is determined, it does not determine the same path that I get with which python3. Specifically, it does not output the path /opt/homebrew/bin/python3, but the path /usr/local/bin/python3. This prevents modules like wget from loading. [...] This causes at least 9 tests to fail. I have already run echo $PATH and had to realize that these results are also very different, because the output within the tests/program has considerably less paths and also the path of Homebrew is not present.

My Solution:

In my case it helped to run rm /usr/local/bin/python3, then uninstall all python3 versions installed via Homebrew with brew uninstall python3 or brew uninstall python@3.9 and then reinstall with brew install python3. But before that I did other steps and messed around with the code, so I can't say if it`s really the solution. Anyway, it works now!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions