3 ms·
What I do on every dev machine is build Python from source and install it to ~/.localpython and put it in my path. Then I can pip install away care-free, and q
by orlp 2y ago
What I do on every dev machine is build Python from source and install it to ~/.localpython and put it in my path.
Then I can pip install away care-free, and quickly run scripts / repls without having to activate an environment.
- eru 2y agoWhy does it need to be built from source for that?
- orlp 2y agoIt doesn't, but it's typically the simplest (for me). It also means I get exactly the version I want compiled with the best optimizations for that machine.
- eru 2y agoThanks, that makes sense.
- m0llusk 2y agoTypically building from source is done to include optional components such as with the ./configure --with-pydebug option. With many projects make doc is an option because so many prefer to skip that part of the build in favor of online documentation.
- sevensor 2y agoBuilding Python is so quick and easy I’ve built an interpreter per project in some circumstances. Sometimes more if I want to make sure it’s compatible with multiple Python versions.