Installation instructions for Kwant on WSL
Hi everyone, Andrey Antipov kindly shared his installation instructions for Kwant using the Windows subsystem for Linux. If you are interested, please check it out over here: https://gist.github.com/aeantipov/3839d09529cb5dd2cedc00b76ccd2eb8 Best, Anton
Hi Andrey, Thanks for sharing your instructions. Do you see a way to automatize this somehow, e.g. to provide Kwant packages for WSL? Is it possible to install our regular Ubuntu Kwant packages [1] in WSL? Christoph [1] https://kwant-project.org/install#ubuntu-and-derivatives
As far as I understand, you could just use conda: Conda Conda is a cross-platform package and environment manager that installs, runs, and updates packages and their dependencies. It allows you to easily set up and switch between environments on your local computer. Conda is included in all versions of Anaconda and Miniconda. Anaconda is Python distribution that includes 150 installed of the most popular Python packages for science. Miniconda is an lighter alternative to Anaconda and comes just with Python and conda. 1. Open a terminal and download Miniconda (or Anaconda) by running wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh 2. Install Miniconda with bash Miniconda3-latest-MacOSX-x86_64.sh and follow its instructions. Make sure that conda is in your PATH, which you can do by adding export PATH="$HOME/miniconda3/bin:$PATH" to your .bashrc or .bash_profile. 3. Add the conda-forge channel and install Kwant and its dependencies with conda config --add channels conda-forge conda install kwant On 23 Jan 2017, 21:34 +0100, Christoph Groth <christoph.groth@cea.fr>, wrote:
Hi Andrey,
Thanks for sharing your instructions. Do you see a way to automatize this somehow, e.g. to provide Kwant packages for WSL? Is it possible to install our regular Ubuntu Kwant packages [1] in WSL?
Christoph
[1] https://kwant-project.org/install#ubuntu-and-derivatives
Sorry, I wasn’t clear in my last message, I accidentally copied the instructions for installing conda and kwant on OSX. What I meant to say is, that you can just install conda for Linux and use it on WSL (at least from Googling a bit I see that other packages work). On 23 Jan 2017, 22:19 +0100, Bas Nijholt <basnijholt@gmail.com>, wrote:
As far as I understand, you could just use conda:
Conda Conda is a cross-platform package and environment manager that installs, runs, and updates packages and their dependencies. It allows you to easily set up and switch between environments on your local computer. Conda is included in all versions of Anaconda and Miniconda. Anaconda is Python distribution that includes 150 installed of the most popular Python packages for science. Miniconda is an lighter alternative to Anaconda and comes just with Python and conda.
1. > Open a terminal and download Miniconda (or Anaconda) by running
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh 2. > Install Miniconda with
bash Miniconda3-latest-MacOSX-x86_64.sh and follow its instructions. Make sure that conda is in your PATH, which you can do by adding export PATH="$HOME/miniconda3/bin:$PATH" to your .bashrc or .bash_profile. 3. > Add the conda-forge channel and install Kwant and its dependencies with
conda config --add channels conda-forge conda install kwant
On 23 Jan 2017, 21:34 +0100, Christoph Groth <christoph.groth@cea.fr>, wrote:
Hi Andrey,
Thanks for sharing your instructions. Do you see a way to automatize this somehow, e.g. to provide Kwant packages for WSL? Is it possible to install our regular Ubuntu Kwant packages [1] in WSL?
Christoph
[1] https://kwant-project.org/install#ubuntu-and-derivatives
Bas, Using conda is a good solution, but a caveat is that Ubuntu anaconda on WSL is broken. There are 2 problems with it: - broken MKL : numpy simply crashes. Some bugs are avoided by setting KMP_AFFINITY=1 as the environment variable, but it’s not stable. - ABI incompatibility of libraries. Basically when I tried to compile kwant and link it to conda libraries, I get all kinds of errors. These problems might be possible to circumvent, but conda is a binary distribution, so I gave up and choose to compile from scratch. Christoph : I’ll give it a try. Andrey.
On Jan 23, 2017, at 1:27 PM, Bas Nijholt <basnijholt@gmail.com> wrote:
Sorry, I wasn’t clear in my last message, I accidentally copied the instructions for installing conda and kwant on OSX.
What I meant to say is, that you can just install conda <http://conda.pydata.org/docs/download.html> for Linux and use it on WSL (at least from Googling a bit I see that other packages work).
On 23 Jan 2017, 22:19 +0100, Bas Nijholt <basnijholt@gmail.com>, wrote:
As far as I understand, you could just use conda:
Conda Conda is a cross-platform package and environment manager that installs, runs, and updates packages and their dependencies. It allows you to easily set up and switch between environments on your local computer. Conda is included in all versions of Anaconda and Miniconda. Anaconda is Python distribution that includes 150 installed of the most popular Python packages for science. Miniconda is an lighter alternative to Anaconda and comes just with Python and conda. Open a terminal and download Miniconda <http://conda.pydata.org/miniconda.html> (or Anaconda <https://www.continuum.io/downloads#osx>) by running wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh Install Miniconda with bash Miniconda3-latest-MacOSX-x86_64.sh and follow its instructions. Make sure that conda is in your PATH, which you can do by adding export PATH="$HOME/miniconda3/bin:$PATH" to your .bashrc or .bash_profile. Add the conda-forge <https://conda-forge.github.io/> channel and install Kwant and its dependencies with conda config --add channels conda-forge conda install kwant
<>
On 23 Jan 2017, 21:34 +0100, Christoph Groth <christoph.groth@cea.fr>, wrote:
Hi Andrey,
Thanks for sharing your instructions. Do you see a way to automatize this somehow, e.g. to provide Kwant packages for WSL? Is it possible to install our regular Ubuntu Kwant packages [1] in WSL?
Christoph
[1] https://kwant-project.org/install#ubuntu-and-derivatives
participants (4)
-
Andrey Antipov
-
Anton Akhmerov
-
Bas Nijholt
-
Christoph Groth