uechi.io/source/_posts/2017/minimal-python-jupyter-macos.md
Yasuaki Uechi 9a9c2343d1
All checks were successful
continuous-integration/drone/push Build is passing
complete revamps
2022-12-24 03:20:02 +09:00

40 lines
859 B
Markdown

---
title: Install Python and Jupyter on macOS with Minimal Effort
date: 2017-02-28 11:14:00 +09:00
redirect_from: "/blog/2017/02/28/minimal-python-jupyter-macos"
---
Maybe you don't need `pyenv` and/or `virtualenv` in most cases.
## Install Python
> Don't have `brew`? Go to <https://brew.sh>.
```
brew install python
```
If you still need Python 2, run `brew install python@2`.
## Install Jupyter Notebook
```
pip install jupyter
python -m ipykernel install --user
```
That's all.
# How about `virtualenv`?
Since Python 3 got its own virtual environment tool called [venv](https://docs.python.org/3/library/venv.html), You no longer need `virtualenv`.
If you want a virtual envs on your project, run:
```
python -m venv venv
source ./venv/bin/activate
```
then `venv` will creates virtual envs on **./venv** folder on the root of your project.