Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conda says conflict over installing dateutil in Python 3.5.1

I have a Python 3.5.1 environment managed by conda. I'm trying to create a new Python 3.5.1 environment with conda create and listing several of the modules I want in the new environment.

One such module is dateutil (not python-dateutil), which is already installed for the existing 3.5.1 environment and was installed merely with the command conda install dateutil -- which gave no warnings or conflicts when I created that environment around 6 months ago. I'm trying to replicate this environment to provide something cloneable to share for an analysis with a collaborator -- when I use conda list on my current 3.5.1 environment, I see that plain dateutil is installed, not python-dateutil, so that's what I need.

However, now when I try to include dateutil for the new environment, it says there is a conflict and that dateutil is only available for Python 2.6.*, 2.7.*, 3.3.*, 3.4.*.

Here's an example:

user@computer:~/programming$ conda create -n test_dateutil python=3.5.1 dateutil
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ............
Solving package specifications: ....

The following specifications were found to be in conflict:
  - dateutil -> python 2.6*|2.7*|3.3*|3.4*
  - python 3.5.1*

But with the existing Python 3.5.1 environment, dateutil is clearly installed with no trouble:

(py35)user@computer:~$ ipython
Python 3.5.1 |Continuum Analytics, Inc.| (default, Dec  7 2015, 11:16:01) 
Type "copyright", "credits" or "license" for more information.

IPython 4.1.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: dateutil
Out[1]: <module 'dateutil' from '/home/user/anaconda/envs/py35/lib/python3.5/site-packages/dateutil/__init__.py'>

In [2]: dateutil.
dateutil.easter         dateutil.relativedelta  dateutil.tz             
dateutil.parser         dateutil.rrule          

In [2]: dateutil.__
dateutil.__builtins__  dateutil.__file__      dateutil.__package__   dateutil.__version__
dateutil.__cached__    dateutil.__loader__    dateutil.__path__      
dateutil.__doc__       dateutil.__name__      dateutil.__spec__      

In [2]: dateutil.__version__
Out[2]: '2.4.2'

In [3]: dateutil.__package__
Out[3]: 'dateutil'

From conda list

    (py35)user@computer:~$ conda list
    # packages in environment at /home/user/anaconda/envs/py35:
    #
    cycler                    0.10.0                   py35_0    http://repo.continuum.io/pkgs/free/linux-64/cycler-0.10.0-py35_0.tar.bz2
    cython                    0.24                     py35_0    http://repo.continuum.io/pkgs/free/linux-64/cython-0.24-py35_0.tar.bz2
    dateutil                  2.4.2                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/dateutil-2.4.2-py35_0.tar.bz2
    decorator                 4.0.2                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/decorator-4.0.2-py35_0.tar.bz2
    entrypoints               0.2                      py35_1    http://repo.continuum.io/pkgs/free/linux-64/entrypoints-0.2-py35_1.tar.bz2
    fontconfig                2.11.1                        5    http://repo.continuum.io/pkgs/free/linux-64/fontconfig-2.11.1-5.tar.bz2
    freetype                  2.5.5                         0    http://repo.continuum.io/pkgs/free/linux-64/freetype-2.5.5-0.tar.bz2
    funcsigs                  0.4                      py35_0    http://repo.continuum.io/pkgs/free/linux-64/funcsigs-0.4-py35_0.tar.bz2
    ipykernel                 4.3.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/ipykernel-4.3.1-py35_0.tar.bz2
    ipython                   4.1.2                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/ipython-4.1.2-py35_0.tar.bz2
    ipython-genutils          0.1.0                     <pip>
    ipython_genutils          0.1.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/ipython_genutils-0.1.0-py35_0.tar.bz2
    ipywidgets                4.1.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/ipywidgets-4.1.1-py35_0.tar.bz2
    jinja2                    2.8                      py35_1    http://repo.continuum.io/pkgs/free/linux-64/jinja2-2.8-py35_1.tar.bz2
    jsonschema                2.5.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/jsonschema-2.5.1-py35_0.tar.bz2
    jupyter                   1.0.0                    py35_3    http://repo.continuum.io/pkgs/free/linux-64/jupyter-1.0.0-py35_3.tar.bz2
    jupyter-client            4.2.2                     <pip>
    jupyter-console           4.1.1                     <pip>
    jupyter-core              4.1.0                     <pip>
    jupyter_client            4.2.2                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/jupyter_client-4.2.2-py35_0.tar.bz2
    jupyter_console           4.1.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/jupyter_console-4.1.1-py35_0.tar.bz2
    jupyter_core              4.1.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/jupyter_core-4.1.0-py35_0.tar.bz2
    libgfortran               3.0                           0    http://repo.continuum.io/pkgs/free/linux-64/libgfortran-3.0-0.tar.bz2
    libpng                    1.6.17                        0    http://repo.continuum.io/pkgs/free/linux-64/libpng-1.6.17-0.tar.bz2
    libsodium                 1.0.10                        0    http://repo.continuum.io/pkgs/free/linux-64/libsodium-1.0.10-0.tar.bz2
    libxml2                   2.9.2                         0    http://repo.continuum.io/pkgs/free/linux-64/libxml2-2.9.2-0.tar.bz2
    markupsafe                0.23                     py35_2    http://repo.continuum.io/pkgs/free/linux-64/markupsafe-0.23-py35_2.tar.bz2
    matplotlib                1.5.1               np110py35_0    http://repo.continuum.io/pkgs/free/linux-64/matplotlib-1.5.1-np110py35_0.tar.bz2
    midiutil                  HEAD                      <pip>
    mistune                   0.7.2                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/mistune-0.7.2-py35_0.tar.bz2
    mkl                       11.3.1                        0    http://repo.continuum.io/pkgs/free/linux-64/mkl-11.3.1-0.tar.bz2
    mock                      1.3.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/mock-1.3.0-py35_0.tar.bz2
    nbconvert                 4.2.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/nbconvert-4.2.0-py35_0.tar.bz2
    nbformat                  4.0.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/nbformat-4.0.1-py35_0.tar.bz2
    ncurses                   5.9                           5    https://conda.binstar.org/asmeurer/linux-64/ncurses-5.9-5.tar.bz2
    nose                      1.3.7                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/nose-1.3.7-py35_0.tar.bz2
    notebook                  4.2.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/notebook-4.2.1-py35_0.tar.bz2
    numpy                     1.10.4                   py35_1    http://repo.continuum.io/pkgs/free/linux-64/numpy-1.10.4-py35_1.tar.bz2
    openblas                  0.2.14                        4    http://repo.continuum.io/pkgs/free/linux-64/openblas-0.2.14-4.tar.bz2
    openssl                   1.0.2d                        0    http://repo.continuum.io/pkgs/free/linux-64/openssl-1.0.2d-0.tar.bz2
    pandas                    0.16.2              np110py35_0    http://repo.continuum.io/pkgs/free/linux-64/pandas-0.16.2-np110py35_0.tar.bz2
    path.py                   7.6.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/path.py-7.6.1-py35_0.tar.bz2
    patsy                     0.4.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/patsy-0.4.1-py35_0.tar.bz2
    pbr                       1.3.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/pbr-1.3.0-py35_0.tar.bz2
    pexpect                   3.3                      py35_0    http://repo.continuum.io/pkgs/free/linux-64/pexpect-3.3-py35_0.tar.bz2
    pickleshare               0.5                      py35_0    http://repo.continuum.io/pkgs/free/linux-64/pickleshare-0.5-py35_0.tar.bz2
    pip                       7.1.2                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/pip-7.1.2-py35_0.tar.bz2
    psycopg2                  2.6.1                    py35_1    http://repo.continuum.io/pkgs/free/linux-64/psycopg2-2.6.1-py35_1.tar.bz2
    ptyprocess                0.5.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/ptyprocess-0.5.1-py35_0.tar.bz2
    pygments                  2.1.3                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/pygments-2.1.3-py35_0.tar.bz2
    pyparsing                 2.0.3                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/pyparsing-2.0.3-py35_0.tar.bz2
    pyqt                      4.11.4                   py35_1    http://repo.continuum.io/pkgs/free/linux-64/pyqt-4.11.4-py35_1.tar.bz2
    pystan                    2.8.0.0                  py35_0    http://repo.continuum.io/pkgs/free/linux-64/pystan-2.8.0.0-py35_0.tar.bz2
    python                    3.5.1                         0    http://repo.continuum.io/pkgs/free/linux-64/python-3.5.1-0.tar.bz2
    pytz                      2015.4                   py35_0    http://repo.continuum.io/pkgs/free/linux-64/pytz-2015.4-py35_0.tar.bz2
    pyyaml                    3.11                     py35_1    http://repo.continuum.io/pkgs/free/linux-64/pyyaml-3.11-py35_1.tar.bz2
    pyzmq                     15.2.0                   py35_1    http://repo.continuum.io/pkgs/free/linux-64/pyzmq-15.2.0-py35_1.tar.bz2
    qt                        4.8.7                         1    http://repo.continuum.io/pkgs/free/linux-64/qt-4.8.7-1.tar.bz2
    qtconsole                 4.2.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/qtconsole-4.2.1-py35_0.tar.bz2
    readline                  6.2.5                         1    https://conda.binstar.org/asmeurer/linux-64/readline-6.2.5-1.tar.bz2
    runcython3                0.2.6                     <pip>
    scikit-learn              0.16.1              np110py35_0    http://repo.continuum.io/pkgs/free/linux-64/scikit-learn-0.16.1-np110py35_0.tar.bz2
    scipy                     0.17.0              np110py35_2    http://repo.continuum.io/pkgs/free/linux-64/scipy-0.17.0-np110py35_2.tar.bz2
    seaborn                   0.7.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/seaborn-0.7.0-py35_0.tar.bz2
    setuptools                18.1                     py35_0    http://repo.continuum.io/pkgs/free/linux-64/setuptools-18.1-py35_0.tar.bz2
    simplegeneric             0.8.1                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/simplegeneric-0.8.1-py35_0.tar.bz2
    sip                       4.16.9                   py35_0    http://repo.continuum.io/pkgs/free/linux-64/sip-4.16.9-py35_0.tar.bz2
    six                       1.9.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/six-1.9.0-py35_0.tar.bz2
    sqlalchemy                1.0.12                   py35_0    http://repo.continuum.io/pkgs/free/linux-64/sqlalchemy-1.0.12-py35_0.tar.bz2
    sqlite                    3.8.4.1                       1    http://repo.continuum.io/pkgs/free/linux-64/sqlite-3.8.4.1-1.tar.bz2
    statsmodels               0.6.1               np110py35_0    http://repo.continuum.io/pkgs/free/linux-64/statsmodels-0.6.1-np110py35_0.tar.bz2
    terminado                 0.6                      py35_0    http://repo.continuum.io/pkgs/free/linux-64/terminado-0.6-py35_0.tar.bz2
    tk                        8.5.18                        0    http://repo.continuum.io/pkgs/free/linux-64/tk-8.5.18-0.tar.bz2
    tornado                   4.3                      py35_1    http://repo.continuum.io/pkgs/free/linux-64/tornado-4.3-py35_1.tar.bz2
    traitlets                 4.0.0                    py35_0    http://repo.continuum.io/pkgs/free/linux-64/traitlets-4.0.0-py35_0.tar.bz2
    wheel                     0.24.0                   py35_0    http://repo.continuum.io/pkgs/free/linux-64/wheel-0.24.0-py35_0.tar.bz2
    xz                        5.0.5                         0    http://repo.continuum.io/pkgs/free/linux-64/xz-5.0.5-0.tar.bz2
    yaml                      0.1.6                         0    http://repo.continuum.io/pkgs/free/linux-64/yaml-0.1.6-0.tar.bz2
    zeromq                    4.1.4                         0    http://repo.continuum.io/pkgs/free/linux-64/zeromq-4.1.4-0.tar.bz2
    zlib                      1.2.8                         0    http://repo.continuum.io/pkgs/free/linux-64/zlib-1.2.8-0.tar.bz2

The particular tarball for dateutil doesn't appear to exist anymore (but definitely was installed with just a simple conda install dateutil previously).

like image 918
ely Avatar asked Jun 12 '16 15:06

ely


People also ask

What is Python Dateutil package?

The dateutil module supports the parsing of dates in any string format. This module provides internal up-to-date world time zone details. This module helps in computing the relative deltas. This module also helps in computing the dates based on pretty flexible rules of recurrence.

What is the use of dateutil in Python?

Extensions to the standard Python datetime module. Info: This package contains files in non-standard labels . linux-64 v2.6.1 win-32 v2.6.1 noarch v2.8.2 osx-64 v2.6.1 win-64 v2.6.1 The dateutil module provides powerful extensions to the standard datetime module, available in Python.

What version of Linux does dateutil run on?

linux-64 v2.6.1 win-32 v2.6.1 noarch v2.8.2 osx-64 v2.6.1 win-64 v2.6.1 The dateutil module provides powerful extensions to the standard datetime module, available in Python.

What is the Conda environment file for Busco?

The conda environment file is this: process_busco.yml: Using either conda env create -f process_busco.yml or from within the workflow package results in multiple package conflicts. stdout: Collecting package metadata (repodata.json): done Solving environment: / Found conflicts! Looking for incompatible packages.

Why is my Python interpreter set to miniconda3?

The problem arises if you set your "python path" to default to that of miniconda3, a procedure which is automated when you accept that the miniconda3 installer adds the following line to your .bashrc file. In other words, everytime you open a shell, your system sets the python interpreter to that of miniconda3, which is version 3.6.


2 Answers

The related Github issue said that the dateutil package was renamed as python-dateutil.

Thus, a mere conda install python-dateutil works fine with Python 3.5.

like image 161
dag Avatar answered Oct 23 '22 09:10

dag


The URL http://repo.continuum.io/pkgs/free/linux-64/dateutil-2.4.2-py35_0.tar.bz2 no longer exists, and I'm not sure why. I'm filing an issue for you on anaconda-issues.

https://github.com/ContinuumIO/anaconda-issues/issues/858

like image 22
kalefranz Avatar answered Oct 23 '22 09:10

kalefranz