Fixing site-packages permission for pip/python

0

I have a new Macbook - a user installed it, and then I installed a new user (mine), granted admin privileges and deleted the old one. I am on OS Catalina.

Since the installation I've been having several permission problems. VSCode can't find Jupyter Notebook, pip installs packages at ~/Library/Python/3.7/site-packages.

When I do which python3 I get usr/bin/python3. When I do pip3 install <package> I get: Defaulting to user installation because normal site-packages is not writeable And then it says it has already been installed, even though I can't access it when I do import .

It's seems clear that this is a permission problem, pip can't install to the "base" python, and them python can't find what I've installed into ~/Library/Python/3.7/site-packages.

I've tried reinstalling the OS, but since I haven't done a clean install, it didn't change anything. What am I missing? How exactly can I fix permissions? Where do I want packages to be installed (venv sure, but some packages I want global (like jupyter).

Thanks

lowercase00

Posted 2020-01-31T15:11:39.337

Reputation: 121

I'd be tempted to start over - the original install will belong to the AppleID of that first user. Eventually you'll hit some point their ID is needed & you won't know it. – Tetsujin – 2020-01-31T15:14:00.280

I was afraid that would be the answer... But it does seem like the best approach... – lowercase00 – 2020-01-31T15:19:37.423

Hope that they didn't block reinstall. New Macs with T2 chips are absolutely un-bypassable unless released by the original user or failing that, Apple. [Unless it's an MDM machine] – Tetsujin – 2020-01-31T15:32:37.163

No answers