简体   繁体   中英

How to create new Conda and .yml environment with updated Conda

Can't create new conda or.yml environments from ananconda. Updated conda using

conda update --all

Updated to satisfy requirements of package I want to use (PyDESeq2). Before update I could create conda environments but received an error when attempting to create.yml environment. Now I can't even create a new conda environment.

Downloaded Repository from PyDESeq2 using

git clone https://github.com/owkin/PyDESeq2.git

Then attempted to create new conda version (per PyDESeq2 instructions) using

conda create env -f environment.yml

Received the following error:


usage: conda-script.py create [-h] [--clone ENV] (-n ENVIRONMENT | -p PATH) [-c CHANNEL] [--use-local] [--override-channels] [--repodata-fn REPODATA_FNS] [--strict-channel-priority] [--no-channel-priority]
                              [--no-deps | --only-deps] [--no-pin] [--copy] [--no-shortcuts] [-C] [-k] [--offline] [-d] [--json] [-q] [-v] [-y] [--download-only] [--show-channel-urls] [--file FILE]
                              [--no-default-packages] [--solver {classic} | --experimental-solver {classic}] [--dev]
                              [package_spec ...]
conda-script.py create: error: one of the arguments -n/--name -p/--prefix is required

It seems to be a typo in PyDESeq2 README. This should work.

conda env create -f environment.yml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM