我希望创建一个空的conda环境,但新创建的环境似乎会从root或其他环境中获取软件包。我已经在系统上以root安装了这些软件包(例如bedtools、bwa等),并且还安装到其他conda环境中,但想要创建一个干净的环境(以便能够重现)。这是预期行为吗?我该如何调试?
我正在尝试遵循这个答案:https://dev59.com/q1sV5IYBdhLWcg3wug7h#37216638
下面是有关环境的一些信息:
我猜这是因为新创建的环境
我正在尝试遵循这个答案:https://dev59.com/q1sV5IYBdhLWcg3wug7h#37216638
$ conda env create -n test-env python
$ source activate
$ conda env export
name: test-env
channels:
- conda-forge
- biconda
- anaconda
- defaults
dependencies
...
python=3.6.2=0
bcftools=1.6=0
bedtools=2.26.0=0
bwa=0.7.15=1
...
picard=2.14=py36_0
...
下面是有关环境的一些信息:
$ conda info
Current conda install:
platform : linux-64
conda version : 4.3.27
conda is private : False
conda-env version : 4.3.27
conda-build version : not installed
python version : 3.6.1.final.0
requests version : 2.14.2
root environment : /home/obk/anaconda3 (writable)
default environment : /home/obk/anaconda3/envs/tttest2
envs directories : /home/obk/anaconda3/envs
/home/obk/.conda/envs
package cache : /home/obk/anaconda3/pkgs
/home/obk/.conda/pkgs
channel URLs : https://repo.continuum.io/pkgs/main/linux-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/linux-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/linux-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/linux-64
https://repo.continuum.io/pkgs/pro/noarch
config file : None
netrc file : None
offline mode : False
user-agent : conda/4.3.27 requests/2.14.2 CPython/3.6.1 Linux/3.13.0-132-generic debian/jessie/sid glibc/2.19
UID:GID : 1001:1001
$ conda deactivate
$ conda info
Current conda install:
platform : linux-64
conda version : 4.3.27
conda is private : False
conda-env version : 4.3.27
conda-build version : not installed
python version : 3.6.1.final.0
requests version : 2.14.2
root environment : /home/obk/anaconda3 (writable)
default environment : /home/obk/anaconda3
envs directories : /home/obk/anaconda3/envs
/home/obk/.conda/envs
package cache : /home/obk/anaconda3/pkgs
/home/obk/.conda/pkgs
channel URLs : https://repo.continuum.io/pkgs/main/linux-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/linux-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/linux-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/linux-64
https://repo.continuum.io/pkgs/pro/noarch
config file : None
netrc file : None
offline mode : False
user-agent : conda/4.3.27 requests/2.14.2 CPython/3.6.1 Linux/3.13.0-132-generic debian/jessie/sid glibc/2.19
UID:GID : 1001:1001
作为一个旁白,我遇到的最初问题如下:
$ source activate test-env
$ conda install jupyter
Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- imagemagick
- jupyter
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
我猜这是因为新创建的环境
test-env
已经有包存在其中...
conda create -n test-env python
而不是conda env create...
吗? - darthbith