执行conda env导出时pip包的版本冲突

执行conda env导出时pip包的版本冲突,pip,conda,Pip,Conda,从先前创建的.yml文件创建conda环境时遇到问题。 运行conda env create-f myenv.yml时,我收到一个错误: Pip subprocess error: Could not find a version that satisfies the requirement anaconda-tests==0.0.0 (from -r /home/robin/condaenv.m8gm40vv.requirements.txt (line 2)) (from version

从先前创建的.yml文件创建conda环境时遇到问题。 运行
conda env create-f myenv.yml时,我收到一个错误:

Pip subprocess error:
  Could not find a version that satisfies the requirement anaconda-tests==0.0.0 (from -r /home/robin/condaenv.m8gm40vv.requirements.txt (line 2)) (from versions: )
No matching distribution found for anaconda-tests==0.0.0 (from -r /home/robin/condaenv.m8gm40vv.requirements.txt (line 2))
You are using pip version 10.0.1, however version 19.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


CondaEnvException: Pip failed

版本:
PIP10.0.1
conda 4.6.14

.yml文件看起来正常,并且包含了所有pip包

以前,我曾尝试升级到
pip19.0.1
,但后来与其他软件包发生了很多版本冲突(因为我使用的是python3.5.2),因此我不得不将其降级

我假设它可能与我正在使用的conda版本有关,因为错误是关于
anaconda tests==0.0.0

更新: 从.yml文件中删除
anaconda tests==0.0.0
后,还有其他冲突包,因此我只是删除了它们或删除了版本号后的“=xxxx”部分。现在我成功地创建了环境

参考原始环境(我导出的环境)的输出

conda列表

#
# Name                    Version                   Build  Channel
absl-py                   0.2.2                    pypi_0    pypi
anaconda-tests            0.0.0                    pypi_0    pypi
astor                     0.6.2                    pypi_0    pypi
atari-py                  0.1.1                    pypi_0    pypi
azure                     1.0.3                    pypi_0    pypi
azure-common              1.1.8                    pypi_0    pypi
azure-mgmt                0.20.2                   pypi_0    pypi
azure-mgmt-common         0.20.0                   pypi_0    pypi
azure-mgmt-compute        0.20.1                   pypi_0    pypi
azure-mgmt-network        0.20.1                   pypi_0    pypi
azure-mgmt-nspkg          2.0.0                    pypi_0    pypi
azure-mgmt-resource       0.20.1                   pypi_0    pypi
azure-mgmt-storage        0.20.0                   pypi_0    pypi
azure-nspkg               2.0.0                    pypi_0    pypi
azure-servicebus          0.20.1                   pypi_0    pypi
azure-servicemanagement-legacy 0.20.2                   pypi_0    pypi
azure-storage             0.20.3                   pypi_0    pypi
backports-weakref         1.0rc1                   pypi_0    pypi
baselines                 0.1.4                     dev_0    <develop>
blas                      1.0                    openblas  
bleach                    1.5.0                    py35_0  
boto3                     1.4.6                    pypi_0    pypi
botocore                  1.6.0                    pypi_0    pypi
box2d                     2.3.2                    pypi_0    pypi
box2d-kengz               2.3.3                    pypi_0    pypi
box2d-py                  2.3.1                    pypi_0    pypi
ca-certificates           2019.1.23                     0  
cached-property           1.3.0                    pypi_0    pypi
certifi                   2017.7.27.1              pypi_0    pypi
cffi                      1.11.4                   pypi_0    pypi
chardet                   3.0.4                    pypi_0    pypi
click                     6.6                      py35_0    jjhelmus
cloudpickle               0.4.0                    pypi_0    pypi
colorama                  0.3.9                    pypi_0    pypi
cycler                    0.10.0                   py35_0  
cython                    0.27.3                   pypi_0    pypi
dbus                      1.10.20                       0  
decorator                 4.1.2                    py35_0  
dill                      0.2.7.1                  pypi_0    pypi
dm-control                0.0.0                    pypi_0    pypi
docutils                  0.14                     pypi_0    pypi
edward                    1.3.4                    pypi_0    pypi
entrypoints               0.2.3                    py35_0  
enum34                    1.1.6                    pypi_0    pypi
expat                     2.1.0                         0  
filelock                  2.0.11                   pypi_0    pypi
flask                     0.12.2                   py35_0  
fontconfig                2.12.1                        3  
freetype                  2.5.5                         2  
future                    0.16.0                   pypi_0    pypi
gast                      0.2.0                    pypi_0    pypi
glfw                      1.5.1                    pypi_0    pypi
glib                      2.50.2                        1  
gpflow                    1.1.0                     dev_0    <develop>
gpy                       1.8.5                    pypi_0    pypi
grpcio                    1.12.1                   pypi_0    pypi
gst-plugins-base          1.8.0                         0  
gstreamer                 1.8.0                         0  
gym                       0.11.0                   pypi_0    pypi
h5py                      2.7.0               np112py35_0  
hdf5                      1.8.17                        2  
hmmlearn                  0.2.1                    pypi_0    pypi
html5lib                  0.9999999                py35_0  
icu                       54.1                          0  
idna                      2.5                      pypi_0    pypi
imageio                   2.2.0                    pypi_0    pypi
intel-openmp              2018.0.0                 pypi_0    pypi
ipdb                      0.10.3                   pypi_0    pypi
ipykernel                 4.6.1                    py35_0  
ipython                   6.1.0                    py35_0  
ipython_genutils          0.2.0                    py35_0  
ipywidgets                5.1.5                    py35_0    menpo
itsdangerous              0.24                     py35_0  
jbig                      2.1                           0  
jedi                      0.10.2                   py35_2  
jinja2                    2.9.6                    py35_0  
jmespath                  0.9.3                    pypi_0    pypi
joblib                    0.10.3                   py35_0    menpo
jpeg                      9b                            0  
jsonschema                2.6.0                    py35_0  
jupyter-console           5.2.0                    pypi_0    pypi
jupyter_client            5.1.0                    py35_0  
jupyter_core              4.3.0                    py35_0  
keras                     2.0.6                    pypi_0    pypi
keras-applications        1.0.7                    pypi_0    pypi
keras-preprocessing       1.0.9                    pypi_0    pypi
kiwisolver                1.0.1                    pypi_0    pypi
lasagne                   0.2.dev1                 pypi_0    pypi
libffi                    3.2.1                         1  
libgcc                    5.2.0                         0  
libgcc-ng                 8.2.0                hdf63c60_1  
libgfortran               3.0.0                         1  
libiconv                  1.14                          0  
libpng                    1.6.27                        0  
libsodium                 1.0.10                        0  
libstdcxx-ng              8.2.0                hdf63c60_1  
libtiff                   4.0.6                         3  
libtorch                  0.1.12                  nomkl_0  [nomkl]
libxcb                    1.12                          1  
libxml2                   2.9.4                         0  
llvmlite                  0.19.0                   py35_0  
lxml                      4.1.1                    pypi_0    pypi
mako                      1.0.6                    py35_0  
markdown                  2.6.11                   pypi_0    pypi
markupsafe                0.23                     py35_2  
matplotlib                2.2.2                    pypi_0    pypi
mistune                   0.7.4                    py35_0  
mkl                       2017.0.3                      0  
mock                      2.0.0                    pypi_0    pypi
mpi4py                    2.0.0                    py35_2  
mpich2                    1.4.1p1                       0  
msgpack-python            0.4.8                    pypi_0    pypi
mujoco-py                 1.50.1.56                pypi_0    pypi
multipledispatch          0.4.9                    pypi_0    pypi
nbconvert                 5.2.1                    py35_0  
nbformat                  4.3.0                    py35_0  
networkx                  2.0                      pypi_0    pypi
nomkl                     1.0                           0  
nose                      1.3.7                    pypi_0    pypi
nose2                     0.6.5                    pypi_0    pypi
notebook                  5.0.0                    py35_0  
numba                     0.34.0              np112py35_0  
numexpr                   2.6.4                    pypi_0    pypi
numpy                     1.14.4                   pypi_0    pypi
observations              0.1.4                    pypi_0    pypi
olefile                   0.44                     py35_0  
openblas                  0.2.19                        0  
opencv-python             3.4.1.15                 pypi_0    pypi
opencv3                   3.1.0                    py35_0    menpo
openssl                   1.0.2r               h7b6447c_0  
pachi-py                  0.0.21                   pypi_0    pypi
pandas                    0.20.3                   py35_0  
pandocfilters             1.4.1                    py35_0  
paramz                    0.8.5                    pypi_0    pypi
path-py                   10.3.1                   pypi_0    pypi
path.py                   10.3.1                   py35_0  
pbr                       3.1.1                    pypi_0    pypi
pcre                      8.39                          1  
pexpect                   4.2.1                    py35_0  
pickleshare               0.7.4                    py35_0  
pillow                    5.0.0                    pypi_0    pypi
pip                       19.0.3                   pypi_0    pypi
progressbar2              3.34.3                   pypi_0    pypi
prompt_toolkit            1.0.14                   py35_0  
protobuf                  3.7.1                    pypi_0    pypi
ptyprocess                0.5.2                    py35_0  
pybox2d                   2.3.1post2               py35_0    kne
pycparser                 2.18                     py35_0  
pygame                    1.9.2a0                  py35_0    kne
pyglet                    1.2.4                    pypi_0    pypi
pygments                  2.2.0                    py35_0  
pyopengl                  3.1.0                    pypi_0    pypi
pyparsing                 2.2.0                    py35_0  
pyprind                   2.11.1                   pypi_0    pypi
pyqt                      5.6.0                    py35_2  
pyro-ppl                  0.1.2                    pypi_0    pypi
python                    3.5.2                         0  
python-dateutil           2.7.2                    pypi_0    pypi
python-graphviz           0.8.2                    pypi_0    pypi
python-utils              2.2.0                    pypi_0    pypi
pytorch                   0.1.12             py35_nomkl_0  [nomkl]
pytz                      2018.3                   pypi_0    pypi
pyyaml                    3.12                     pypi_0    pypi
pyzmq                     16.0.2                   py35_0  
qt                        5.6.2                         5  
qtconsole                 4.3.1                    pypi_0    pypi
readline                  6.2                           2  
requests                  2.18.3                   pypi_0    pypi
rllab                     0.1.0                     dev_0    <develop>
roboschool                1.0                       dev_0    <develop>
s3transfer                0.1.10                   pypi_0    pypi
scikit-learn              0.19.1                   pypi_0    pypi
scipy                     1.2.1                    pypi_0    pypi
seaborn                   0.8.1                    pypi_0    pypi
setuptools                39.2.0                   pypi_0    pypi
simplegeneric             0.8.1                    py35_1  
sip                       4.19.12          py35he6710b0_0  
six                       1.11.0                   pypi_0    pypi
sqlite                    3.13.0                        0  
swig                      3.0.10                        0  
tensorboard               1.8.0                    pypi_0    pypi
tensorflow-gpu            1.8.0                    pypi_0    pypi
termcolor                 1.1.0                    pypi_0    pypi
terminado                 0.6                      py35_0  
testpath                  0.3.1                    py35_0  
tk                        8.5.18                        0  
torch                     0.3.0.post4              pypi_0    pypi
torchvision               0.2.0                    pypi_0    pypi
tornado                   4.5.1                    py35_0  
tqdm                      4.15.0                   pypi_0    pypi
traitlets                 4.3.2                    py35_0  
urllib3                   1.22                     pypi_0    pypi
wcwidth                   0.1.7                    py35_0  
werkzeug                  0.14.1                   pypi_0    pypi
wheel                     0.31.1                   pypi_0    pypi
widgetsnbextension        1.2.3                    py35_1    menpo
xlrd                      1.2.0                    pypi_0    pypi
xz                        5.2.2                         1  
zeromq                    4.1.5                         0  
zlib                      1.2.8                         3  
zmq                       0.0.0                    pypi_0    pypi

运行
conda env export>myenv.yml
并删除冲突包后,.yml文件为:

name: testingtesting
channels:
  - defaults
dependencies:
  - python=3.5.2=0
  - pip==10.0.1
  - blas=1.0=openblas
  - bleach=1.5.0
  - ca-certificates=2019.1.23=0
  - click=6.6
  - cycler=0.10.0
  - dbus=1.10.20=0
  - decorator=4.1.2
  - entrypoints=0.2.3
  - expat=2.1.0=0
  - flask=0.12.2
  - fontconfig=2.12.1=3
  - freetype=2.5.5=2
  - glib=2.50.2=1
  - gst-plugins-base=1.8.0=0
  - gstreamer=1.8.0=0
  - h5py=2.7.0
  - hdf5=1.8.17=2
  - html5lib=0.9999999
  - icu=54.1=0
  - ipykernel=4.6.1
  - ipython=6.1.0
  - ipython_genutils=0.2.0
  - itsdangerous=0.24
  - jbig=2.1=0
  - jedi=0.10.2
  - jinja2=2.9.6
  - jpeg=9b=0
  - jsonschema=2.6.0
  - jupyter_client=5.1.0
  - jupyter_core=4.3.0
  - libffi=3.2.1=1
  - libgcc=5.2.0=0
  - libgcc-ng=8.2.0
  - libgfortran=3.0.0=1
  - libiconv=1.14=0
  - libpng=1.6.27=0
  - libsodium=1.0.10=0
  - libstdcxx-ng=8.2.0
  - libtiff=4.0.6=3
  - libtorch=0.1.12
  - libxcb=1.12=1
  - libxml2=2.9.4=0
  - llvmlite=0.19.0
  - mako=1.0.6
  - markupsafe=0.23
  - mistune=0.7.4
  - mkl=2017.0.3=0
  - mpi4py=2.0.0
  - mpich2=1.4.1p1=0
  - nbconvert=5.2.1
  - nbformat=4.3.0
  - nomkl=1.0=0
  - notebook=5.0.0
  - numba=0.34.0
  - olefile=0.44
  - openblas=0.2.19=0
  - openssl=1.0.2r
  - pandas=0.20.3
  - pandocfilters=1.4.1
  - path.py=10.3.1
  - pcre=8.39=1
  - pexpect=4.2.1
  - pickleshare=0.7.4
  - prompt_toolkit=1.0.14
  - ptyprocess=0.5.2
  - pycparser=2.18
  - pygments=2.2.0
  - pyparsing=2.2.0
  - pyqt=5.6.0
  - pyzmq=16.0.2
  - qt=5.6.2=5
  - readline=6.2=2
  - simplegeneric=0.8.1
  - sip=4.19.12
  - sqlite=3.13.0=0
  - swig=3.0.10=0
  - terminado=0.6
  - testpath=0.3.1
  - tk=8.5.18=0
  - tornado=4.5.1
  - traitlets=4.3.2
  - wcwidth=0.1.7
  - xz=5.2.2=1
  - zeromq=4.1.5=0
  - zlib=1.2.8=3
  - pip:
    - absl-py==0.2.2
    - astor==0.6.2
    - atari-py==0.1.1
    - azure==1.0.3
    - azure-common==1.1.8
    - azure-mgmt==0.20.2
    - azure-mgmt-common==0.20.0
    - azure-mgmt-compute==0.20.1
    - azure-mgmt-network==0.20.1
    - azure-mgmt-nspkg==2.0.0
    - azure-mgmt-resource==0.20.1
    - azure-mgmt-storage==0.20.0
    - azure-nspkg==2.0.0
    - azure-servicebus==0.20.1
    - azure-servicemanagement-legacy==0.20.2
    - azure-storage==0.20.3
    - backports-weakref==1.0rc1
    - boto3==1.4.6
    - botocore==1.6.0
    - box2d==2.3.2
    - box2d-kengz==2.3.3
    - box2d-py==2.3.1
    - cached-property==1.3.0
    - cffi==1.11.4
    - chardet==3.0.4
    - cloudpickle==0.4.0
    - colorama==0.3.9
    - cython==0.27.3
    - dill==0.2.7.1
    - docutils==0.14
    - edward==1.3.4
    - enum34==1.1.6
    - filelock==2.0.11
    - future==0.16.0
    - gast==0.2.0
    - glfw==1.5.1
    - gpy==1.8.5
    - grpcio==1.12.1
    - gym==0.11.0
    - hmmlearn==0.2.1
    - idna==2.5
    - imageio==2.2.0
    - intel-openmp==2018.0.0
    - ipdb==0.10.3
    - jmespath==0.9.3
    - jupyter-console==5.2.0
    - keras==2.0.6
    - keras-applications==1.0.7
    - keras-preprocessing==1.0.9
    - kiwisolver==1.0.1
    - lxml==4.1.1
    - markdown==2.6.11
    - matplotlib==2.2.2
    - mock==2.0.0
    - msgpack-python==0.4.8
    - mujoco-py==1.50.1.56
    - multipledispatch==0.4.9
    - networkx==2.0
    - nose==1.3.7
    - nose2==0.6.5
    - numexpr==2.6.4
    - numpy==1.14.4
    - observations==0.1.4
    - opencv-python==3.4.1.15
    - pachi-py==0.0.21
    - paramz==0.8.5
    - path-py==10.3.1
    - pbr==3.1.1
    - pillow==5.0.0
    - progressbar2==3.34.3
    - protobuf==3.7.1
    - pyglet==1.2.4
    - pyopengl==3.1.0
    - pyprind==2.11.1
    - pyro-ppl==0.1.2
    - python-dateutil==2.7.2
    - python-utils==2.2.0
    - pytz==2018.3
    - pyyaml==3.12
    - qtconsole==4.3.1
    - requests==2.18.3
    - s3transfer==0.1.10
    - scikit-learn==0.19.1
    - scipy==1.2.1
    - seaborn==0.8.1
    - setuptools==39.2.0
    - six==1.11.0
    - tensorboard==1.8.0
    - tensorflow-gpu==1.8.0
    - termcolor==1.1.0
    - tqdm==4.15.0
    - urllib3==1.22
    - werkzeug==0.14.1
    - wheel==0.31.1
    - xlrd==1.2.0
    - zmq==0.0.0
# prefix: /home/robin/anaconda3/envs/py35lab


然后,我使用
conda env create-f myenv.yml

从.yml文件创建了新环境。您能显示YAML env文件吗?在anaconda.org或Pypi上找不到任何
anaconda测试
包的痕迹。可能是定制的包裹吗?删除此依赖项可能会解决您的问题。
name: testingtesting
channels:
  - defaults
dependencies:
  - python=3.5.2=0
  - pip==10.0.1
  - blas=1.0=openblas
  - bleach=1.5.0
  - ca-certificates=2019.1.23=0
  - click=6.6
  - cycler=0.10.0
  - dbus=1.10.20=0
  - decorator=4.1.2
  - entrypoints=0.2.3
  - expat=2.1.0=0
  - flask=0.12.2
  - fontconfig=2.12.1=3
  - freetype=2.5.5=2
  - glib=2.50.2=1
  - gst-plugins-base=1.8.0=0
  - gstreamer=1.8.0=0
  - h5py=2.7.0
  - hdf5=1.8.17=2
  - html5lib=0.9999999
  - icu=54.1=0
  - ipykernel=4.6.1
  - ipython=6.1.0
  - ipython_genutils=0.2.0
  - itsdangerous=0.24
  - jbig=2.1=0
  - jedi=0.10.2
  - jinja2=2.9.6
  - jpeg=9b=0
  - jsonschema=2.6.0
  - jupyter_client=5.1.0
  - jupyter_core=4.3.0
  - libffi=3.2.1=1
  - libgcc=5.2.0=0
  - libgcc-ng=8.2.0
  - libgfortran=3.0.0=1
  - libiconv=1.14=0
  - libpng=1.6.27=0
  - libsodium=1.0.10=0
  - libstdcxx-ng=8.2.0
  - libtiff=4.0.6=3
  - libtorch=0.1.12
  - libxcb=1.12=1
  - libxml2=2.9.4=0
  - llvmlite=0.19.0
  - mako=1.0.6
  - markupsafe=0.23
  - mistune=0.7.4
  - mkl=2017.0.3=0
  - mpi4py=2.0.0
  - mpich2=1.4.1p1=0
  - nbconvert=5.2.1
  - nbformat=4.3.0
  - nomkl=1.0=0
  - notebook=5.0.0
  - numba=0.34.0
  - olefile=0.44
  - openblas=0.2.19=0
  - openssl=1.0.2r
  - pandas=0.20.3
  - pandocfilters=1.4.1
  - path.py=10.3.1
  - pcre=8.39=1
  - pexpect=4.2.1
  - pickleshare=0.7.4
  - prompt_toolkit=1.0.14
  - ptyprocess=0.5.2
  - pycparser=2.18
  - pygments=2.2.0
  - pyparsing=2.2.0
  - pyqt=5.6.0
  - pyzmq=16.0.2
  - qt=5.6.2=5
  - readline=6.2=2
  - simplegeneric=0.8.1
  - sip=4.19.12
  - sqlite=3.13.0=0
  - swig=3.0.10=0
  - terminado=0.6
  - testpath=0.3.1
  - tk=8.5.18=0
  - tornado=4.5.1
  - traitlets=4.3.2
  - wcwidth=0.1.7
  - xz=5.2.2=1
  - zeromq=4.1.5=0
  - zlib=1.2.8=3
  - pip:
    - absl-py==0.2.2
    - astor==0.6.2
    - atari-py==0.1.1
    - azure==1.0.3
    - azure-common==1.1.8
    - azure-mgmt==0.20.2
    - azure-mgmt-common==0.20.0
    - azure-mgmt-compute==0.20.1
    - azure-mgmt-network==0.20.1
    - azure-mgmt-nspkg==2.0.0
    - azure-mgmt-resource==0.20.1
    - azure-mgmt-storage==0.20.0
    - azure-nspkg==2.0.0
    - azure-servicebus==0.20.1
    - azure-servicemanagement-legacy==0.20.2
    - azure-storage==0.20.3
    - backports-weakref==1.0rc1
    - boto3==1.4.6
    - botocore==1.6.0
    - box2d==2.3.2
    - box2d-kengz==2.3.3
    - box2d-py==2.3.1
    - cached-property==1.3.0
    - cffi==1.11.4
    - chardet==3.0.4
    - cloudpickle==0.4.0
    - colorama==0.3.9
    - cython==0.27.3
    - dill==0.2.7.1
    - docutils==0.14
    - edward==1.3.4
    - enum34==1.1.6
    - filelock==2.0.11
    - future==0.16.0
    - gast==0.2.0
    - glfw==1.5.1
    - gpy==1.8.5
    - grpcio==1.12.1
    - gym==0.11.0
    - hmmlearn==0.2.1
    - idna==2.5
    - imageio==2.2.0
    - intel-openmp==2018.0.0
    - ipdb==0.10.3
    - jmespath==0.9.3
    - jupyter-console==5.2.0
    - keras==2.0.6
    - keras-applications==1.0.7
    - keras-preprocessing==1.0.9
    - kiwisolver==1.0.1
    - lxml==4.1.1
    - markdown==2.6.11
    - matplotlib==2.2.2
    - mock==2.0.0
    - msgpack-python==0.4.8
    - mujoco-py==1.50.1.56
    - multipledispatch==0.4.9
    - networkx==2.0
    - nose==1.3.7
    - nose2==0.6.5
    - numexpr==2.6.4
    - numpy==1.14.4
    - observations==0.1.4
    - opencv-python==3.4.1.15
    - pachi-py==0.0.21
    - paramz==0.8.5
    - path-py==10.3.1
    - pbr==3.1.1
    - pillow==5.0.0
    - progressbar2==3.34.3
    - protobuf==3.7.1
    - pyglet==1.2.4
    - pyopengl==3.1.0
    - pyprind==2.11.1
    - pyro-ppl==0.1.2
    - python-dateutil==2.7.2
    - python-utils==2.2.0
    - pytz==2018.3
    - pyyaml==3.12
    - qtconsole==4.3.1
    - requests==2.18.3
    - s3transfer==0.1.10
    - scikit-learn==0.19.1
    - scipy==1.2.1
    - seaborn==0.8.1
    - setuptools==39.2.0
    - six==1.11.0
    - tensorboard==1.8.0
    - tensorflow-gpu==1.8.0
    - termcolor==1.1.0
    - tqdm==4.15.0
    - urllib3==1.22
    - werkzeug==0.14.1
    - wheel==0.31.1
    - xlrd==1.2.0
    - zmq==0.0.0
# prefix: /home/robin/anaconda3/envs/py35lab