Gangmax Blog

自由之思想,独立之精神

ElasticSearch, Miniconda and Jupyter

| Comments

This is a guide how to use ElasticSearch with Python and Jupyter.

To make the Jupyter works on my environment, I want to create a “miniconda” virtual environment, which caused error with “pyenv”. Here is the instructions how to make it work.

1
2
3
4
5
6
7
8
9
10
11
12
13
pyenv local miniconda3-4.3.30
conda update conda
conda create -n es python=3.6

# This will add code to your "~/.zshrc" file.
# The added code will make each terminal use "miniconda" as default,
# which overrides the existing "pyenv". I commented out the snippet
in the "~/.zshrc" file when I didn't use conda.
conda init zsh

conda activate es
conda install elasticsearch
conda install jupyter

The following links are also used to get the final solution:

1

2

Comments