Active10 months ago
His key id EA5BBD71 was used to sign all other Python 2.6 and 3.0 releases. His key id ED9D77D5 is a v3 key and was used to sign older releases; because it is an old MD5 key and rejected by more recent implementations, ED9D77D5 is no longer included in the public key file. But at this point, you may get stuck when looking for the best Python interpreter to use. Furthermore, you may have read about two different versions of the language, so choosing the correct version and interpreter is the first important decision to take.
I just bought a new Mac and would like to avoid messing up any python dependencies and paths like I did when using Homebrew and pip in parallel with my old Mac. What is the cleanest and most powerful way of setting up a python distribution and installing all necessary packages, like e.g. scipy, matplotlib, numpy, etc.: Best gaming keyboards for mac.
- Homebrew
- pip (maybe via Homebrew?)
- virtual environments/anaconda
What do I need to be careful with?
GuisteGuiste
closed as primarily opinion-based by Jim Stewart, wim, tripleee, Shree, petezurichOct 23 '18 at 4:57
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.
2 Answers
I think your question pretty much sums up how I have my set up. I based it off of doing a few online readings on clean set ups. To summarize:
- It is recommended to install Python 2 and 3 via HomeBrew for your global set up
- The above step should install pip AFAIK
- Virtualenv is super useful for sandboxing different local environments.
Note that Anaconda would allow you to create envs also (see https://conda.io/docs/user-guide/tasks/manage-environments.html), plus you get all those scientific packages you mentioned for 'free' without too many other installs. To get a little meta, you can even use Brew to install anaconda:
brew cask install anaconda
:)Things to keep in mind:
- Don't do too many installs on your global set up and try to keep it bare.
- Leverage the virtual envs and do all your installs and customize as needed. For example, you can have one for python 2 with your scientific packages and another for python 3 with barely anything just for debugging.
Here are a couple of references I looked at while I completed my set up:
Microsoft office for mac 2011 best price. Farewell tip: If you do somehow mess up your python 2 and python 3 set up, you can use
brew doctor
and brew prune
to remove any broken sym linksbest of luck!
LeKhan9
Download Python Setup For Pc
LeKhan91,1001 gold badge1 silver badge13 bronze badges
Switch Python Versions Mac
If you want all the data science libs, Anaconda is by far the easiest way of doing it in my experience.
Install Python 3 On Mac
Do make use of virtual environments when possible. It'll help your machine remain tidy.
AlphaTestedAlphaTested5572 gold badges10 silver badges20 bronze badges