Ho un ambiente Python 3.5.1 gestito da conda. Sto cercando di creare un nuovo ambiente Python 3.5.1 con conda create
e elencando diversi moduli che voglio nel nuovo ambiente.Conda dice conflitto sull'installazione di dateutil in Python 3.5.1
Un tale modulo è dateutil
(nonpython-dateutil
), che è già installato per l'ambiente esistente e 3.5.1 è stato installato solo con il comando conda install dateutil
- che ha dato nessun avviso o conflitti quando ho creato questo ambiente intorno a 6 mesi fa. Sto cercando di replicare questo ambiente per fornire qualcosa di clonabile da condividere per un'analisi con un collaboratore - quando uso il conda list
sul mio attuale ambiente 3.5.1, vedo che è stato installato il semplice dateutil
, non python-dateutil
, quindi è quello di cui ho bisogno .
Tuttavia, ora quando provo a includere dateutil
per il nuovo ambiente, si dice che c'è un conflitto e che dateutil
è disponibile solo per Python 2.6. *, 2.7. *, 3.3. *, 3.4. *.
Ecco un esempio:
[email protected]:~/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*
Ma con l'ambiente 3.5.1 Python esistente, dateutil
è chiaramente installato senza problemi:
(py35)[email protected]:~$ 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'
Da conda list
(py35)[email protected]:~$ 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
Il particolare tarball per dateutil
non sembra esiste più (ma sicuramente è stato installato con solo un semplice conda install dateutil
in precedenza).
Cosa dice 'pip install dateutil'? – Wombatz
Questo deve essere gestito specificatamente da conda (e nemmeno da Pip di Anaconda). Il pacchetto esiste, elenca solo un conflitto su versioni che apparentemente non esistevano 6 mesi fa. – ely
'' conda' usa una nomenclatura diversa per datautil? Il pacchetto pip è chiamato 'python-dateutil'. – Paul