-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brew install poetry
depends on python@3.10
and not using pyenv python (macOS)
#5423
Comments
BTW, this issue could be resolved by reinstalling poetry with the official way: # Uninstall poetry from brew
$ brew uninstall poetry
# Install poetry by official method
$ curl -sSL https://install.python-poetry.org | python3 -
# You need to reinstall packages by poetry
$ rm -r .venv
$ poetry install
# Now it points to pyenv's python
$ poetry shell
$ python --version
Python 3.10.3
$ ls -lh `which python`
lrwxr-xr-x 1 xaree staff 50B Apr 7 14:15 /Users/xaree/dev/PythonPro/.venv/bin/python -> /Users/xaree/.pyenv/versions/3.10.3/bin/python3.10 I leave the issue opened for installing poetry with brew. |
Opened issue means unresolved issue. Google can track closed issue as well so there is no need to leave this issue opened. |
Same issue with the following configuration
I did temporarily hack it by using an .envrc and direnv with Installing poetry with curl rather than pipx as mentioned above fixed this issue. |
I wonder why Homebrew is not installing Poetry in a self-contained manner. |
Homebrew installation is not an official one and is not maintained by the Poetry team. The only official ways are the ones that are mentioned in Poetry documentation. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
I installed both pyenv and poetry by homebrew on macOS.
I installed python 3.10.3 by pyenv
Now I create a python project using poetry
The poetry uses brew's python, not pyenv's python. I did not install brew's python manually, but brew's poetry did.
Questions:
python@3.10
necessary inpoetry.rb
for brew installation?This issue may associate with #4646.
The text was updated successfully, but these errors were encountered: