title: conda environment from windows to linux
body: <p>I have developed a project on windows using pycharm and I want to deploy in on an ubuntu server. </p>
  
  <p>I am trying to create a <code>requirements.txt</code> using these commands:</p>
  
  <pre><code>conda list -e &gt; requirements.txt
  conda list &gt; requirements.txt
  </code></pre>
  
  <p>Depending on the options the <code>requirements.txt</code> looks like any of these:</p>
  
  <pre><code># This file may be used to create an environment using:
  # $ conda create --name &lt;env&gt; --file &lt;this file&gt;
  # platform: win-64
  @EXPLICIT
  https://repo.anaconda.com/pkgs/main/win-64/blas-1.0-mkl.tar.bz2
  https://repo.anaconda.com/pkgs/main/win-64/ca-certificates-2018.03.07-0.tar.bz2
  https://repo.anaconda.com/pkgs/main/win-64/icc_rt-2017.0.4-h97af966_0.tar.bz2
  https://repo.anaconda.com/pkgs/main/win-64/intel-openmp-2018.0.3-0.tar.bz2
  </code></pre>
  
  <p>Or this</p>
  
  <pre><code># packages in environment at C:\ProgramData\Anaconda2\envs\myenvs:
  #
  # Name                    Version                   Build  Channel
  anyjson                   0.3.3            py36h1110a06_1  
  arrow                     0.12.1                   py36_1  
  asn1crypto                0.24.0                   py36_0  
  babel                     2.6.0                    py36_0
  </code></pre>
  
  <p>Or this</p>
  
  <pre><code>name: myenv
  channels:
    - defaults
  dependencies:
    - anyjson=0.3.3=py36h1110a06_1
    - arrow=0.12.1=py36_1
    - asn1crypto=0.24.0=py36_0
    - babel=2.6.0=py36_0
    - blas=1.0=mkl
  </code></pre>
  
  <p>No matter how I try to do this I get errors on the ubuntu machine, in some cases because the package is for windows: (<strong>/win-64/</strong>)</p>
  
  <pre><code>https://repo.anaconda.com/pkgs/main/win-64/ca-certificates-2018.03.07-0.tar.bz2 
  </code></pre>
  
  <p>I have read a lot of documentation but I seem not to be able to get what I want. 
  <a href="https://stackoverflow.com/questions/39105596/conda-python-virtual-environment-is-not-portable-from-windows-to-linux">Conda (Python) Virtual Environment is not Portable from Windows to Linux</a></p>
  
  <p>Any solution? </p>