title: How to get a completely clean python environment with miniconda?
body: <p>I have tried:</p>
  
  <pre><code>conda create --name Leaf python==3.6.5
  </code></pre>
  
  <p>And if I do <code>conda list</code>
  I can find:</p>
  
  <pre><code># packages in environment at /home/roychang/miniconda3/envs/Leaf:
  #
  # Name                    Version                   Build  Channel
  ca-certificates           2018.03.07                    0  
  certifi                   2018.4.16                py36_0  
  libedit                   3.1.20170329         h6b74fdf_2  
  libffi                    3.2.1                hd88cf55_4  
  libgcc-ng                 7.2.0                hdf63c60_3  
  libstdcxx-ng              7.2.0                hdf63c60_3  
  ncurses                   6.1                  hf484d3e_0  
  openssl                   1.0.2o               h14c3975_1  
  pip                       10.0.1                   py36_0  
  python                    3.6.5                hc3d631a_2  
  readline                  7.0                  ha6073c6_4  
  setuptools                40.0.0                   py36_0  
  sqlite                    3.24.0               h84994c4_0  
  tk                        8.6.7                hc745277_3  
  wheel                     0.31.1                   py36_0  
  xz                        5.2.4                h14c3975_4  
  zlib                      1.2.11               ha838bed_2  
  </code></pre>
  
  <p>But if I try to run some script which use some package didn't in this list (like kivy).
  I think it shouldn't work, but it did!</p>
  
  <p>So does MiniConda auto fetch the package from the origin python root?
  How could I get a completely clean python environment with MiniConda?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Seems that I didn't explain well, I had activated that environment and what I got after doing <code>conda list</code> was the result showing above.</p>
  
  <p>I could run this script when I activated the environment, although I didn't install kivy under this environment. I only installed kivy to the origin python before I installed MiniConda.</p>
  
  <pre><code>from kivy.app import App
  from kivy.core.window import Window
  from kivy.uix.widget import Widget
  from kivy.uix.floatlayout import FloatLayout
  from kivy.uix.button import Button
  from kivy.uix.spinner import Spinner
  from kivy.uix.label import Label
  from kivy.uix.image import Image
  from kivy.uix.textinput import TextInput
  from kivy.graphics import Color, Ellipse, Line, Rectangle
  from kivy.lang import Builder
  </code></pre>
  
  <p>And what else I found is if I try <code>which python</code>, it showed:</p>
  
  <pre><code>(Leaf) roychang@ThinkPad-T480:~$ which python
  /home/roychang/miniconda3/bin/python
  </code></pre>
  
  <p>After I deactivated the environment and did <code>which python</code> again I got the same result.
  Is this expected? I think it should use different python in different environment.</p>
  
  <p><code>conda list</code> in default environment (I found Kivy isn't here):</p>
  
  <pre><code># Name                    Version                   Build  Channel
  asn1crypto                0.24.0                   py36_0
  ca-certificates           2018.03.07                    0
  certifi                   2018.4.16                py36_0
  cffi                      1.11.5           py36h9745a5d_0
  chardet                   3.0.4            py36h0f667ec_1
  conda                     4.5.4                    py36_0
  conda-env                 2.6.0                h36134e3_1
  cryptography              2.2.2            py36h14c3975_0
  idna                      2.6              py36h82fb2a8_1
  libedit                   3.1.20170329         h6b74fdf_2
  libffi                    3.2.1                hd88cf55_4
  libgcc-ng                 7.2.0                hdf63c60_3
  libstdcxx-ng              7.2.0                hdf63c60_3
  ncurses                   6.1                  hf484d3e_0
  openssl                   1.0.2o               h20670df_0
  pip                       10.0.1                   py36_0
  pycosat                   0.6.3            py36h0a5515d_0
  pycparser                 2.18             py36hf9f622e_1
  pyopenssl                 18.0.0                   py36_0
  pysocks                   1.6.8                    py36_0
  python                    3.6.5                hc3d631a_2
  readline                  7.0                  ha6073c6_4
  requests                  2.18.4           py36he2e5f8d_1
  ruamel_yaml               0.15.37          py36h14c3975_2
  setuptools                39.2.0                   py36_0
  six                       1.11.0           py36h372c433_1
  sqlite                    3.23.1               he433501_0
  tk                        8.6.7                hc745277_3
  urllib3                   1.22             py36hbe7ace6_0
  wheel                     0.31.1                   py36_0
  xz                        5.2.4                h14c3975_4
  yaml                      0.1.7                had09818_2
  zlib                      1.2.11               ha838bed_2
  </code></pre>
  
  <p><code>pip list</code> in default environment (kivy is found here):</p>
  
  <pre><code>Package                Version
  ---------------------- ---------
  asn1crypto             0.24.0
  bcrypt                 3.1.4
  bitarray               0.8.3
  boto                   2.49.0
  boto3                  1.7.74
  botocore               1.10.74
  certifi                2018.4.16
  cffi                   1.11.5
  chardet                3.0.4
  click                  6.7
  coloredlogs            10.0
  conda                  4.5.4
  cryptography           2.3
  Cython                 0.28.2
  docutils               0.14
  ffmpeg-python          0.1.15
  ffmpy                  0.2.2
  future                 0.16.0
  humanfriendly          4.16.1
  idna                   2.7
  jmespath               0.9.3
  Kivy                   1.10.1
  Kivy-Garden            0.1.4
  mysql-connector-python 8.0.11
  numpy                  1.15.0
  paramiko               2.4.1
  Pillow                 5.2.0
  pip                    10.0.1
  protobuf               3.6.0
  pyasn1                 0.4.4
  pycosat                0.6.3
  pycparser              2.18
  Pygments               2.2.0
  pymongo                3.7.1
  PyNaCl                 1.2.1
  pyOpenSSL              18.0.0
  pyperclip              1.6.2
  PySocks                1.6.8
  python-dateutil        2.7.3
  pytz                   2018.5
  pyzmq                  17.1.0
  requests               2.19.1
  ruamel-yaml            0.15.37
  s3transfer             0.1.13
  scipy                  1.1.0
  setuptools             40.0.0
  six                    1.11.0
  torchfile              0.1.0
  tornado                5.1
  urllib3                1.23
  visdom                 0.1.8.4
  websocket-client       0.48.0
  wheel                  0.31.1
  zmq                    0.0.0
  </code></pre>
  
  <p><code>pip list</code> in Leaf (kivy is found here too):</p>
  
  <pre><code>Package                Version
  ---------------------- ---------
  asn1crypto             0.24.0
  bcrypt                 3.1.4
  bitarray               0.8.3
  boto                   2.49.0
  boto3                  1.7.74
  botocore               1.10.74
  certifi                2018.4.16
  cffi                   1.11.5
  chardet                3.0.4
  click                  6.7
  coloredlogs            10.0
  cryptography           2.3
  Cython                 0.28.2
  docutils               0.14
  ffmpeg-python          0.1.15
  ffmpy                  0.2.2
  future                 0.16.0
  humanfriendly          4.16.1
  idna                   2.7
  jmespath               0.9.3
  Kivy                   1.10.1
  Kivy-Garden            0.1.4
  mysql-connector-python 8.0.11
  numpy                  1.15.0
  paramiko               2.4.1
  Pillow                 5.2.0
  pip                    10.0.1
  protobuf               3.6.0
  pyasn1                 0.4.4
  pycparser              2.18
  Pygments               2.2.0
  pymongo                3.7.1
  PyNaCl                 1.2.1
  pyOpenSSL              18.0.0
  pyperclip              1.6.2
  python-dateutil        2.7.3
  pytz                   2018.5
  pyzmq                  17.1.0
  requests               2.19.1
  s3transfer             0.1.13
  scipy                  1.1.0
  setuptools             40.0.0
  six                    1.11.0
  torchfile              0.1.0
  tornado                5.1
  umbopython             0.3
  urllib3                1.23
  visdom                 0.1.8.4
  websocket-client       0.48.0
  wheel                  0.31.1
  zmq                    0.0.0
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>roychang@ThinkPad-T480:~$ which pip
  /home/roychang/miniconda3/bin/pip
  roychang@ThinkPad-T480:~$ act Leaf
  (Leaf) roychang@ThinkPad-T480:~$ which pip
  /home/roychang/miniconda3/envs/Leaf/bin/pip
  </code></pre>
  
  <p><strong>LAST UPDATE (PROBABLY)</strong>:</p>
  
  <p>Still not solved.
  But don't know why python is separated now.</p>
  
  <p>Tried to uninstall Kivy under Leaf, then Kivy disappeared from both pip list.
  I then re-install it under Leaf, and only Leaf got Kivy now.</p>