conda force python版本的非回归

conda force python版本的非回归,python,python-3.x,python-2.7,anaconda,conda,Python,Python 3.x,Python 2.7,Anaconda,Conda,我正在创建一个conda env,并指定我希望python 3.6在其中: $ export PYTHON_VERSION=3.6 $ source ~/virtualenv/python2.7/bin/activate $ python --version Python 2.7.14 $ pip --version pip 9.0.1 from /home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages (python 2.

我正在创建一个conda env,并指定我希望python 3.6在其中:

$ export PYTHON_VERSION=3.6
$ source ~/virtualenv/python2.7/bin/activate
$ python --version
Python 2.7.14
$ pip --version
pip 9.0.1 from /home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages (python 2.7)
$ wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
$ chmod +x miniconda.sh
$ ./miniconda.sh -b -p /home/travis/miniconda
$ export PATH=/home/travis/miniconda/bin:$PATH
$ conda update --yes --quiet conda
$ conda env create --file environment.yml python=${PYTHON_VERSION}
但是,安装python 2.7时:

conda env create --file environment.yml python=${PYTHON_VERSION}
Fetching package metadata ...........
Solving package specifications: .
... omitting some packages here 
python-2.7.16- 100% |################################| Time: 0:00:00  74.39 MB/s
... omitting some other packages
这里是environment.yml:

name: my-env

dependencies:
    - ipython
    - numpy>=1.12
    - seaborn>=0.7
    - scipy>=0.18.0
    - matplotlib>=2.0.0
    - Cython>=0.26
    - scikit-learn>=0.20.1
    - tqdm
    - nose
    - numpydoc
    - pytest
    - pytest-cov

    - pip:
        - "https://api.github.com/repos/choldgraf/download/zipball/master"

发生了什么事?以及如何使用正确的python版本?

编辑:
环境中添加所需的python版本。yaml
下载并安装所需的python版本

name: my-env

dependencies:
  - python=3.6.8
  - ipython
  - numpy>=1.12
  - seaborn>=0.7
  - scipy>=0.18.0
  - matplotlib>=2.0.0
  - Cython>=0.26
  - scikit-learn>=0.20.1
  - tqdm
  - nose
  - numpydoc
  - pytest
  - pytest-cov

  - pip:
    - "https://api.github.com/repos/choldgraf/download/zipball/master"

  • 使用正确的python版本创建环境
    conda安装——将我的环境命名为python=${python\u VERSION}
  • 使用
    environment.yaml更新环境
    
    conda env update——文件环境.yaml
  • 8.0 0 0 0 0,T Tγγ-8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8.7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7,7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 l,l,d,a,n,d,n,o,T,p,y,T,h,o,n,3, "

    3.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0 0 0 0 0 0 0 0 0 0 0 0,0 0 0 0 7 7 7 7 7 7 7 7 7 7 7,0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8,0 0 0 0 0 0,0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7此外,还有一个城市的交通运输系统的要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是要是本本本本该该该该该该该该该本本本本部部部部部部部部部部部部部的话,的话话,的话,本部部部部部部部部部部部部部部部部部部部部部部部部奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈奈x,8,6,6,4,s,h, "

    "H,o,p,e,t,H,i,s,H,e,l,p,s" "

    3.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 3.2万,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,我,c,c,c,0,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,p,c,c,p,c,c,c,c,p,c,c,p,p,c,c,c,p,p,c,c,p,c,p,c,c,p,c,c,p,p,p,c,c,c,p,c,c,n,n,n,n,n,n,n,n,n,n,n,n,p,p,p,p,p,p,p,p,n,n,n,2.0 0,0.0,0.0,0.0,0.0,0.0,0.0 0,0.0 0,0.0 0,0.0,0.0,0 0 0 0,0 0.0,0.0,0 0 0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,a,a,a,a,a,a,t,t,t,t,t,t,t,t,E 82822222奈奈奈奈奈奈奈奈奈奈蒂,t,t,t,t,t,t,t,t,t,t经经经经行行行行行行行行行行行行省省省省省省省省省省省省省省省省省省省省省省省省省省省省省省M,E,n,t,w,i,t,h,h,E,8.0,c,c,0,c,c,0,c,c,0,c,0,c,0,c,0,c,0,c,0,c,c,0,0,c,0,c,m,m,m,m,m,m,c,m,m,c,m,m,m,m,m,m,m,m,m,r,e,e,e,a,a,a,a,a,a,a,a,a,c,r,r,r,e,e,e,e,e,a,a,a,e,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,e,a,a,a,a,a,a,e,a,a,a,a,a,a,a,a,e,a,a,a,a,e,a,a,a,a,a,a,a,a n,3,6,p,y,t,h,o,n,3,6,8, "

    3.0万岁,Y-Y Y-Y,Y-Y,Y-Y,0 0 0 0,0 0 0,0 0 0,0 0 0 0,0 0 0,0 0 0 0,0 0 0 0,0 0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,o,o,o,o,o,o,o,o,o,o,o,o,r,r,r,r,r n方方方方,以及以及对对对本本开展开展开展开展开展开展开展开展开展开展的研究,a a,a,a a,a,a,a,a,a 8282828282828282822277777777777ααααα,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a 82我,r,o,n,m,e,n,t,s,h,e,r,e
    ̶

    但确切地说,我正在使用
    conda env create--file environment.yml python=${python\u VERSION}
    创建环境。为什么使用python2.7?问题是,我还需要使用python2调用一个env。我刚刚测试过,如果我使用miniconda3,那么应该使用python2的env也会安装python3。我以为你想要miniconda3。显式命令condacreate-npython36python=3.6.8在为我从miniconda2创建python3env时起作用。这是特拉维斯自动化测试。可能还值得注意的是,如果您首先使用特定的Python版本创建env,那么您还可以格外小心,以免将来的安装/更新触发更改。