-
Notifications
You must be signed in to change notification settings - Fork 56
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
Install on MacOs fails with Exception: This build of python cannot create venvs without using symlinks #52
Comments
duplicate of #24 |
I had to install pyenv, a version of python and then activate in brew install pyenv
echo 'eval "$(pyenv init --path)"' >> ~/.zshrc
pyenv install 3.10.5
curl -sSL https://install.python-poetry.org | python3 -
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zprofile |
Not sure if it help, but it worked be specifying the version, here 3.9:
|
To add to Quentin, I installed 3.10.1: |
had to uninstall system one and this worked for me on macos ventura zsh |
I'm on a brand new mac with py3.9 installed and this should work as documented, but I keep getting the symlinks issue explained here. Forgive me for bothering here, but I don't think it's a good user experience to suggest that the best user case is to not just install 3.10, but to uninstall the system 3.9 python, especially when the docs say it should work with 3.6. Line 309 of the installer script, where the venv is actually created, has this line:
I pulled the script local, flipped it to |
You can try |
Alternatively, use pyenv to set the global python which is unaliased by default.
|
If you want to run this on MacOS, there are a couple extra steps to follow - (I am running this in bash)
|
set global python version works, thanks ~ |
kinda sad that poetry's install completely fails. the only thing that worked for me was |
Could use |
Just to reiterate:
|
It worked! Thanks! |
the documentation should be updated to state this |
Interesting... in pyenv docs one line is slightly different from yours. Your: echo 'eval "$(pyenv init --path)"' >> ~/.zshrc Which line is correct? |
Works with Python 3.13 too:
|
Python version: 3.9.6
OS version and name: macOS 12.6
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
Poetry installation fails on MacOS 12.6.
The text was updated successfully, but these errors were encountered: