ContinuumIO / anaconda-issues

Anaconda issue tracking
646 stars 220 forks source link

Duplicate envs show up in Navigator and conda env list. Help! #11713

Open Ridgeglider opened 4 years ago

Ridgeglider commented 4 years ago

Actual Behavior

Anaconda3 Navigator is showing duplicate environments: image.

conda env list image

Both show the same recent activity after typing the following into a terminal window loaded from Navigator into the specific environment: conda list --revisions

A file diff of the two requirements.txt files for each env shows they're identical. : conda list -e requirements_top_geo-env.txt conda list -e requirements_botttom_geo-env.txt

The file explorer however shows something odd - a geo-env and a geo_env. The geo_env does not appear when you list the conda envs: image

the geo_env is much smaller: image

compared to the geo-env: image

Expected Behavior

I think I should have a single geo-env. I want to get rid of the duplicate, but how do I tell which one to remove? How do I remove the right one -- just delete the folder (maybe geo_env) in Windows explorer, or delete on of the geo-env environments from within Anaconda Navigator?

Steps to Reproduce

not sure..

Anaconda or Miniconda version:

Anaconda Navigator 1.9.12 Anaconda3-2020.02-Windows-x86_64

Operating System:

Win 10 Pro, V1903, OS build 18362.720

conda info
``` active environment : geo-env active env location : C:\Users\XYZ\anaconda3\envs\geo-env shell level : 3 user config file : C:\Users\XYZ\.condarc populated config files : C:\Users\XYZ\.condarc conda version : 4.8.3 conda-build version : 3.18.11 python version : 3.7.6.final.0 virtual packages : __cuda=10.2 base environment : C:\Users\XYZ\anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\XYZ\anaconda3\pkgs C:\Users\XYZ\.conda\pkgs C:\Users\XYZ\AppData\Local\conda\conda\pkgs envs directories : C:\Users\XYZ\anaconda3\envs C:\Users\XYZ\.conda\envs C:\Users\XYZ\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.8.3 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.18362 administrator : False netrc file : None offline mode : False ```
conda list --show-channel-urls
``` # packages in environment at C:\Users\XYZ\anaconda3\envs\geo-env: # # Name Version Build Channel alabaster 0.7.12 py37_0 defaults argh 0.26.2 py37_0 defaults asn1crypto 1.3.0 py37_0 defaults astroid 2.3.3 py37_0 defaults atomicwrites 1.3.0 py37_1 defaults attrs 19.3.0 py_0 defaults autopep8 1.4.4 py_0 defaults babel 2.8.0 py_0 defaults backcall 0.1.0 py37_0 defaults bcrypt 3.1.7 py37he774522_0 defaults blas 1.0 mkl defaults bleach 3.1.0 py37_0 defaults bzip2 1.0.8 he774522_0 defaults ca-certificates 2020.1.1 0 defaults certifi 2019.11.28 py37_1 defaults cffi 1.14.0 py37h7a1dbc1_0 defaults chardet 3.0.4 py37_1003 defaults click 7.1.1 py_0 defaults click-plugins 1.1.1 py_0 defaults cligj 0.5.0 py37_0 defaults cloudpickle 1.3.0 py_0 defaults colorama 0.4.3 py_0 defaults cryptography 2.8 py37h7a1dbc1_0 defaults curl 7.67.0 h2a8f88b_0 defaults cycler 0.10.0 py37_0 defaults decorator 4.4.2 py_0 defaults defusedxml 0.6.0 py_0 defaults descartes 1.1.0 py_4 defaults diff-match-patch 20181111 py_0 defaults docutils 0.16 py37_0 defaults entrypoints 0.3 py37_0 defaults expat 2.2.5 he025d50_0 defaults fiona 1.8.4 py37h22081e2_0 defaults flake8 3.7.9 py37_0 defaults freetype 2.9.1 ha9979f8_1 defaults freexl 1.0.5 hfa6e2cd_0 defaults future 0.18.2 py37_0 defaults gdal 2.3.3 py37hdf43c64_0 defaults geopandas 0.6.1 py_0 defaults geos 3.7.1 h33f27b4_0 defaults hdf4 4.2.13 h712560f_2 defaults hdf5 1.10.4 h7ebc959_0 defaults icc_rt 2019.0.0 h0cc432a_1 defaults icu 58.2 ha66f8fd_1 defaults idna 2.9 py_1 defaults imagesize 1.2.0 py_0 defaults importlib_metadata 1.5.0 py37_0 defaults intel-openmp 2020.0 166 defaults intervaltree 3.0.2 py_0 defaults ipykernel 5.1.4 py37h39e3cac_0 defaults ipython 7.13.0 py37h5ca1d4c_0 defaults ipython_genutils 0.2.0 py37_0 defaults isort 4.3.21 py37_0 defaults jedi 0.14.1 py37_0 defaults jinja2 2.11.1 py_0 defaults jpeg 9b hb83a4c4_2 defaults jsonschema 3.2.0 py37_0 defaults jupyter_client 6.1.2 py_0 defaults jupyter_core 4.6.3 py37_0 defaults kealib 1.4.7 h07cbb95_6 defaults keyring 21.1.0 py37_0 defaults kiwisolver 1.1.0 py37ha925a31_0 defaults krb5 1.16.4 hc04afaa_0 defaults lazy-object-proxy 1.4.3 py37he774522_0 defaults libboost 1.67.0 hd9e427e_4 defaults libcurl 7.67.0 h2a8f88b_0 defaults libgdal 2.3.3 h10f50ba_0 defaults libiconv 1.15 h1df5818_7 defaults libkml 1.3.0 he5f2a48_4 defaults libnetcdf 4.6.1 h411e497_2 defaults libpng 1.6.37 h2a8f88b_0 defaults libpq 11.2 h3235a2c_0 defaults libsodium 1.0.16 h9d3ae62_0 defaults libspatialindex 1.9.3 h33f27b4_0 defaults libspatialite 4.3.0a hc36aec2_19 defaults libssh2 1.9.0 h7a1dbc1_1 defaults libtiff 4.1.0 h56a325e_0 defaults libxml2 2.9.9 h464c3ec_0 defaults markupsafe 1.1.1 py37he774522_0 defaults matplotlib 3.1.3 py37_0 defaults matplotlib-base 3.1.3 py37h64f37c6_0 defaults mccabe 0.6.1 py37_1 defaults mistune 0.8.4 py37he774522_0 defaults mkl 2020.0 166 defaults mkl-service 2.3.0 py37hb782905_0 defaults mkl_fft 1.0.15 py37h14836fe_0 defaults mkl_random 1.1.0 py37h675688f_0 defaults munch 2.5.0 py_0 defaults nbconvert 5.6.1 py37_0 defaults nbformat 5.0.4 py_0 defaults numpy 1.18.1 py37h93ca92e_0 defaults numpy-base 1.18.1 py37hc3f5095_1 defaults numpydoc 0.9.2 py_0 defaults openssl 1.1.1f he774522_0 defaults packaging 20.3 py_0 defaults pandas 1.0.3 py37h47e9c7a_0 defaults pandoc 2.2.3.2 0 defaults pandocfilters 1.4.2 py37_1 defaults paramiko 2.7.1 py_0 defaults parso 0.5.2 py_0 defaults pathtools 0.1.2 py_1 defaults pcre 8.43 ha925a31_0 defaults pexpect 4.8.0 py37_0 defaults pickleshare 0.7.5 py37_0 defaults pip 20.0.2 py37_1 defaults pluggy 0.13.1 py37_0 defaults proj4 5.2.0 ha925a31_1 defaults prompt-toolkit 3.0.4 py_0 defaults prompt_toolkit 3.0.4 0 defaults psutil 5.7.0 py37he774522_0 defaults pycodestyle 2.5.0 py37_0 defaults pycparser 2.20 py_0 defaults pydocstyle 4.0.1 py_0 defaults pyflakes 2.1.1 py37_0 defaults pygments 2.6.1 py_0 defaults pylint 2.4.4 py37_0 defaults pynacl 1.3.0 py37h62dcd97_0 defaults pyopenssl 19.1.0 py37_0 defaults pyparsing 2.4.6 py_0 defaults pyproj 1.9.6 py37h6782396_0 defaults pyqt 5.9.2 py37h6538335_2 defaults pyrsistent 0.16.0 py37he774522_0 defaults pysocks 1.7.1 py37_0 defaults python 3.7.7 h60c2a47_0_cpython defaults python-dateutil 2.8.1 py_0 defaults python-jsonrpc-server 0.3.4 py_0 defaults python-language-server 0.31.9 py37_0 defaults pytz 2019.3 py_0 defaults pywin32 227 py37he774522_1 defaults pywin32-ctypes 0.2.0 py37_1000 defaults pyyaml 5.3.1 py37he774522_0 defaults pyzmq 18.1.1 py37ha925a31_0 defaults qdarkstyle 2.8 py_0 defaults qt 5.9.7 vc14h73c81de_0 defaults qtawesome 0.7.0 py_0 defaults qtconsole 4.7.2 py_0 defaults qtpy 1.9.0 py_0 defaults requests 2.23.0 py37_0 defaults rope 0.16.0 py_0 defaults rtree 0.9.3 py37h21ff451_0 defaults setuptools 46.1.3 py37_0 defaults shapely 1.6.4 py37h222a598_0 defaults sip 4.19.8 py37h6538335_0 defaults six 1.14.0 py37_0 defaults snowballstemmer 2.0.0 py_0 defaults sortedcontainers 2.1.0 py37_0 defaults sphinx 2.4.4 py_0 defaults sphinxcontrib-applehelp 1.0.2 py_0 defaults sphinxcontrib-devhelp 1.0.2 py_0 defaults sphinxcontrib-htmlhelp 1.0.3 py_0 defaults sphinxcontrib-jsmath 1.0.1 py_0 defaults sphinxcontrib-qthelp 1.0.3 py_0 defaults sphinxcontrib-serializinghtml 1.1.4 py_0 defaults spyder 4.0.1 py37_0 defaults spyder-kernels 1.8.1 py37_0 defaults sqlite 3.31.1 he774522_0 defaults testpath 0.4.4 py_0 defaults tk 8.6.8 hfa6e2cd_0 defaults tornado 6.0.4 py37he774522_1 defaults traitlets 4.3.3 py37_0 defaults ujson 1.35 py37hfa6e2cd_0 defaults urllib3 1.25.8 py37_0 defaults vc 14.1 h0510ff6_4 defaults vs2015_runtime 14.16.27012 hf0eaf9b_1 defaults watchdog 0.10.2 py37_0 defaults wcwidth 0.1.9 py_0 defaults webencodings 0.5.1 py37_1 defaults wheel 0.34.2 py37_0 defaults win_inet_pton 1.1.0 py37_0 defaults wincertstore 0.2 py37_0 defaults wrapt 1.12.1 py37he774522_1 defaults xerces-c 3.2.2 ha925a31_0 defaults xz 5.2.4 h2fa13f4_4 defaults yaml 0.1.7 hc54c509_2 defaults yapf 0.28.0 py_0 defaults zeromq 4.3.1 h33f27b4_3 defaults zipp 2.2.0 py_0 defaults zlib 1.2.11 h62dcd97_3 defaults zstd 1.3.7 h508b16e_0 defaults ```
ZedTDean commented 3 years ago

Same issue

ZaneLau-Info commented 3 years ago

Find the environments.txt in C:\Users\Administrator.conda ,then delete all info in it.

PaulusPietsma commented 3 years ago

I have the same issue. It seems like the two paths differ by either using a capital A or not for the directory anaconda3. I think the issue is related to the fact that it also sees the whole anaconda3 directory as a virtual environment (see the second vevn in the image). If you delete this in the navigator, it removes nearly all files in this directory and requires a new install of anaconda to fix it.

github-account1111 commented 3 years ago

If you delete this in the navigator, it removes nearly all files in this directory and requires a new install of anaconda to fix it.

Anaconda is so unstable. I can't keep count how many times I've had to reinstall due to bugs like this or things going wrong during updates. And then those bugs still return eventually for seemingly no reason.

They don't seem to care, issues like this stay with zero feedback or acknowledgement for literal years.

If anyone has an alternative using vanilla Python lmk.