cannot install with pipx and python 3.12 on MacOS
Issue
Installation with pipx seems to require numpy 1.24, which requires distutils, which does not exist anymore in python 3.12.
pip seemed to fail to build package: numpy==1.24.3
Some possibly relevant errors from pip install: ModuleNotFoundError: No module named 'distutils'
Error installing aider-chat
Version and model info
MacOS 14.7.1 Python 3.12.7 pipx 1.7.1
Same behavior is seen with python==3.13.0. Should probably be linked to #1984.
If you use something like pyenv or mise that shims python, either add --python=$(which python) to your pipx install command, or add this to your .zshrc
export PIPX_DEFAULT_PYTHON="$HOME/.local/share/mise/shims/python"
Thanks for trying aider and filing this issue.
Python 3.12 should work fine. How are you trying to install aider?
I'm having the same issue.
Followed the instructions on the aider website Python3.13 is installed Tried pipx install
Keep getting this:
`pip seemed to fail to build package: numpy==1.24.3
Some possibly relevant errors from pip install: ModuleNotFoundError: No module named 'distutils'
Error installing aider-chat. ` I've attached the log in case it helps.
cmd_2024-11-23_12.43.07_pip_errors.txt
UPDATE:
I reinstalled Python and updated pip
Here is the new error:
UPDATE 2:
I installed Python 3.12.7 and tried again.
Seems to have installed ✅
Aider works with python 3.9-3.12, not with 3.13.
Tip:
Just use the command pipx install aider-chat --python python3.12 for now until 3.13 support comes.
Thanks for the reply. I moved back to Windsurf. Cheers!
On 8 Dec 2024, at 11:35, Damian Barabonkov @.***> wrote:
Tip:
Just use the command pipx install aider-chat --python python3.12 for now until 3.13 support comes.
— Reply to this email directly, view it on GitHub https://github.com/Aider-AI/aider/issues/2391#issuecomment-2525674695, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6Z5ITAFJOQ6NNNVFDQ7XLL2EQVIJAVCNFSM6AAAAABR7EP32SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRVGY3TINRZGU. You are receiving this because you commented.
Give aider another shot ;) I promise you it is good (coming from a user, unaffiliated with the dev team).
I definitely will do but I’m a layman when it comes to web development so I’ve just found it easier to have it as a package and play with the lego blocks as opposed to understanding what material the blocks are made of.
Trial is running out in 2 days though so I’ll look at it properly then.
What have you built with it?
On 8 Dec 2024, at 11:38, Damian Barabonkov @.***> wrote:
Give aider another shot ;) I promise you it is good (coming from a user, unaffiliated with the dev team).
— Reply to this email directly, view it on GitHub https://github.com/Aider-AI/aider/issues/2391#issuecomment-2525675589, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6Z5ITHVCVYY3CDVSMWO2HL2EQVUDAVCNFSM6AAAAABR7EP32SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRVGY3TKNJYHE. You are receiving this because you commented.
I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.
Note: A bot script made these updates to the issue.
ip:
Just use the command
pipx install aider-chat --python python3.12for now until 3.13 support comes.
pacman -S python-pip python-pipx
pacaur -S python312
pipx install aider-chat --python python3.12
if someone wants to try this in docker I attach my "generic Arch Yay/Pacaur Dockerfile" with those few lines at the end: Dockerfile.extension.for.github.txt (adding extension as otherwise github won't accept issue attachment),
as full file attached, here is TL;DR-
FROM archlinux:latest
(...) install developer packages, fakeroot, etc...
(...) add auruser and set it in sudoers to ``auruser ALL=(ALL) NOPASSWD: ALL"`
(...) as auruser build and install yay
(...) build and install auracle with all dependencies
(...) and vim, etc...
# and finally we have base to feel comfortable inside container, or to easily add more...
# so let's install aider-chat:
USER root
RUN pacman -S --noconfirm python-pip python-pipx
USER auruser
RUN yay -S --noconfirm python312
RUN pipx install aider-chat --python python3.12
# Set the default command
CMD ["/bin/bash"]
(yes, there is a lot of redundancy there, and it's working as expected as it's development Dockerfile to have more tools, comfortable for experimenting, coding, etc)
I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.
Note: A bot script made these updates to the issue.
I'm closing this issue because it has been stalled for 3 weeks with no activity. Feel free to add a comment here and we can re-open it. Or feel free to file a new issue at any time.
Note: A bot script made these updates to the issue.