Giter Club home page Giter Club logo

conda-move's Introduction

conda-move

"Move" an existing miniconda installation to a new directory.

usage: bash conda-move.sh <old_conda_dir> <new_conda_dir>

This is necessary because actually moving a conda installation tends to break everything. Instead, it is necessary to:

  1. install a fresh miniconda into the target directory

  2. export all of the environments from the old conda installation

  3. reinstall these environments into the new fresh miniconda install directory.

The reinstallation is done in two steps:

  1. try to install the exact packages as the original environment (using an explicit specification file)

  2. if that fails, install the packages using an environment file (conda env export > environmentname.yml)

  3. if that also fails, save the environment name to to a list of failed environments. You'll have to tweak the environment.yml file yourself and install them using conda env create -f environment.yml

The installation can fail for certain packages, because some versions of older conda packages are marked as "broken" and seem to have been removed from the conda repositories. The script automatically removes the version number from known broken packages that I ran into when moving my environments, so that a newer version can be used automatically. This includes the following packages:

- libtiff=4.0.9.*
- libiconv=1.15=0
- libxml2=2.9.8=.*
- wheel=0.30.0.*
- asn1crypto=0.24.*
- r-pillar=1.2.2=r341_0

conda-move's People

Contributors

matthuska avatar wtwhite avatar terrycojones avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.