Mercurial > hg > Blog
diff content/Python/installing-packages-in-userspace-on-osx.md @ 98:1d9382b0329b
Specify the syntax on markdown blocks to avoid broken output that has class=err
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 19 Dec 2019 10:04:33 +0100 |
parents | cdb041787591 |
children |
line wrap: on
line diff
--- a/content/Python/installing-packages-in-userspace-on-osx.md Thu Dec 19 09:31:57 2019 +0100 +++ b/content/Python/installing-packages-in-userspace-on-osx.md Thu Dec 19 10:04:33 2019 +0100 @@ -8,16 +8,19 @@ Before I can use `pip` it has to be installed. I want to install everything in userspace so first a proper PYTHONPATH has to be set up: + :::shell export PYTHONPATH=/Users/dirk/Python/site-packages Then I can go ahead and use `easy_install` to install `pip`: + :::shell easy_install --install-dir /Users/dirk/Python/site-packages pip Make sure to add `/Users/dirk/Python` to your PATH so that you can call pip without specifying the full path. Now I can start installing packages: + :::shell pip install --target /Users/dirk/Python/site-packages <package> This approach has its limitations, though. Since the developer tools aren't installed packages that require compliation of C code won't work. \ No newline at end of file