Sample Header Ad - 728x90

migration from x86 - Apple Silicon - problems with ~/Library/Python/3.12 x86 leftovers

1 vote
1 answer
109 views
Just moved from an X86 mac to an M3 and having some problems with the ~/Library/Python/3.12 directory. What I did so far: - restored from Time Machine - home only - left /Applications/ behind, figuring that's all x86 and only want to Rosetta when necessary - installed python3.12 (from macports, and then then directly from python.org) All went well. Installed uv too, and got a venv running. Python 3.12 is live and looks good. Except that, when I call ruff I get a notice about bad CPU. Sure enough I have 3.12 python executables that got carried over in ~/Library/Python:
`
3.12
├── bin
├── etc
│   └── jupyter
├── include
│   └── python3.12
├── lib
│   └── python
└── share
    ├── applications
    ├── icons
    ├── jupyter
    └── man
` OK, and yes, sure enough, there is an *old* bin/ruff. All this stuff got restored from Time Machine. OK, I think, rm that 3.12 and reinstall Python 3.12. Again, all goes well, except that none of the installs recreated a ~/Library/Python/3.12. So, I can pip install ruff successfully, but nothing gets deposited in Python/3.12. That's after a reinstall from macports and a reinstall from python.org. I also tried to recreate the 3.12 directory structure, empty. Didn't help. How do I fix this installation? Note: I do not wish to use brew for a python installation. note: This is what the 3.11 bin structure looks like. Note that ruff is a file, not a symlink.
`
/Users/me/Library/Python/3.11/bin
me@Mac bin % lsl ruff
-rwxr-xr-x  1 me  staff  18915192 31 Jan  2024 ruff
`
Asked by JL Peyret (1193 rep)
Dec 28, 2024, 11:01 PM
Last activity: Feb 9, 2025, 10:04 AM