Replicating others' environments locally

First, we can export our Anaconda environment by using the following command:

conda env export > myEnv.yml 

After generating this file, the notepad can be used to open it (see the following few lines of our output file). To save space, only the first and last few lines are shown:

name: base channels: - anaconda - defaults dependencies: - bzip2=1.0.6=vc14h31cfb99_1 - curl=7.55.1=vc14h8488bd0_3 - freetype=2.8=vc14hfa46bb4_0 - hdf5=1.10.1=vc14h7c25517_0 - icu=58.2=vc14hbe8e9fa_0 - jpeg=9b=vc14h39a59fb_1 - libiconv=1.15=vc14h61b1384_5 - libpng=1.6.32=vc14hf267d31_3 - libssh2=1.8.0=vc14h91c0462_2 - xlrd=1.1.0=py36he7b893d_1 - xlsxwriter=1.0.2=py36hde92fec_0 - xlwings=0.11.4=py36h89f095e_0 - xlwt=1.3.0=py36hb79324b_0 ...

Get Hands-On Data Science with Anaconda now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.