ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 224 forks source link

conda update conda failing to update #12828

Closed rraju26 closed 2 years ago

rraju26 commented 2 years ago

Thanks for opening an issue! Please fill out the following template in full.

A few things to keep in mind:

Actual Behavior

conda update anaconda gives

PackageNotInstalledError: Package is not installed in prefix. prefix: /Users/xx/opt/anaconda3/envs/refpluspdf package name: anaconda

Unable to update any of the outdated packages in this environment. I have tried the

conda update -name base anaconda

which went

Collecting package metadata (current_repodata.json): done Solving environment: done

All requested packages already installed.

Expected Behavior

the command should update anaconda/packages

Steps to Reproduce

Anaconda or Miniconda version:

2.1.1 / 2021.11

Operating System:

macOS Monterey v 12.2 21D49

conda info
``` active environment : refpluspdf active env location : /Users/xx/opt/anaconda3/envs/refpluspdf shell level : 2 user config file : /Users/xx/.condarc populated config files : /Users/xx/.condarc conda version : 4.11.0 conda-build version : 3.21.4 python version : 3.8.8.final.0 virtual packages : __osx=10.16=0 __unix=0=0 __archspec=1=x86_64 base environment : /Users/xx/opt/anaconda3 (writable) conda av data dir : /Users/xx/opt/anaconda3/etc/conda conda av metadata url : None channel URLs : https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch package cache : /Users/xx/opt/anaconda3/pkgs /Users/xx/.conda/pkgs envs directories : /Users/xx/opt/anaconda3/envs /Users/xx/.conda/envs platform : osx-64 user-agent : conda/4.11.0 requests/2.27.1 CPython/3.8.8 Darwin/21.3.0 OSX/10.16 UID:GID : 501:20 netrc file : /Users/xx/.netrc offline mode : False ```
conda list --show-channel-urls
``` # packages in environment at /Users/xx/opt/anaconda3/envs/refpluspdf: # # Name Version Build Channel alabaster 0.7.12 pyhd3eb1b0_0 defaults anyio 3.3.0 pypi_0 pypi appdirs 1.4.4 pypi_0 pypi applaunchservices 0.2.1 py_0 defaults appnope 0.1.2 py39hecd8cb5_1001 defaults arch-py 5.1.0 py39hc89836e_0 conda-forge argh 0.26.2 py39hecd8cb5_0 defaults arrow 0.13.1 py39hecd8cb5_0 defaults astroid 2.6.6 py39hecd8cb5_0 defaults async_generator 1.10 pyhd3eb1b0_0 defaults atomicwrites 1.4.0 py_0 defaults attrs 21.2.0 pyhd3eb1b0_0 defaults autopep8 1.5.6 pyhd3eb1b0_0 defaults babel 2.9.1 pyhd3eb1b0_0 defaults backcall 0.2.0 pyhd3eb1b0_0 defaults bcrypt 3.2.0 py39h9ed2024_0 defaults binaryornot 0.4.4 pyhd3eb1b0_1 defaults black 19.10b0 py_0 defaults blas 1.0 mkl defaults bleach 3.3.1 pyhd3eb1b0_0 defaults bottleneck 1.3.2 py39he3068b8_1 defaults brotlipy 0.7.0 py39h9ed2024_1003 defaults c-ares 1.18.1 hca72f7f_0 defaults ca-certificates 2021.10.26 hecd8cb5_2 defaults cairo 1.16.0 h8023c5d_1 defaults certifi 2021.10.8 py39hecd8cb5_2 defaults cffi 1.14.6 py39h2125817_0 defaults chardet 3.0.4 pypi_0 pypi charset-normalizer 2.0.4 pyhd3eb1b0_0 defaults click 8.0.1 pyhd3eb1b0_0 defaults cloudpickle 1.6.0 py_0 defaults connectorx 0.2.2 pypi_0 pypi cookiecutter 1.7.2 pyhd3eb1b0_0 defaults cryptography 3.4.7 py39h2fd3fbb_0 defaults curl 7.78.0 h7bc2e8c_0 defaults cvxpy 1.1.15 pypi_0 pypi cycler 0.10.0 py39hecd8cb5_0 defaults cyrus-sasl 2.1.27 h8a25369_8 defaults cython 0.29.24 py39h23ab428_0 defaults daal4py 2021.3.0 py39h01d92e1_0 defaults dal 2021.3.0 hecd8cb5_555 defaults dash 2.0.0 pyhd8ed1ab_0 conda-forge dash-bootstrap-components 1.0.0 pyhd8ed1ab_0 conda-forge dataclasses 0.8 pyh6d0b6a4_7 defaults datastreamdsws 1.0.9 pypi_0 pypi datetime 4.3 pypi_0 pypi decorator 5.0.9 pyhd3eb1b0_0 defaults defusedxml 0.7.1 pyhd3eb1b0_0 defaults deprecation 2.1.0 pypi_0 pypi diff-match-patch 20200713 py_0 defaults distro 1.6.0 pypi_0 pypi docutils 0.17.1 py39hecd8cb5_1 defaults ecos 2.0.7.post1 pypi_0 pypi eikon 1.1.13 pypi_0 pypi entrypoints 0.3 py39hecd8cb5_0 defaults et_xmlfile 1.1.0 py39hecd8cb5_0 defaults eventemitter 0.2.0 pypi_0 pypi ffn 0.3.6 pyhd8ed1ab_0 conda-forge flake8 3.9.0 pyhd3eb1b0_0 defaults flask 1.1.2 pyhd3eb1b0_0 defaults flask-compress 1.5.0 py_0 defaults fontconfig 2.13.1 ha9ee91d_0 defaults freetype 2.10.4 ha233b18_0 defaults future 0.18.2 py39hecd8cb5_1 defaults gettext 0.21.0 h7535e17_0 defaults glib 2.69.1 hdf23fa2_0 defaults greenlet 1.1.0 py39h23ab428_0 defaults h11 0.8.1 pypi_0 pypi h2 3.2.0 pypi_0 pypi hpack 3.0.0 pypi_0 pypi http3 0.6.7 pypi_0 pypi httpcore 0.13.2 pypi_0 pypi httpx 0.18.1 pypi_0 pypi hyperframe 5.2.0 pypi_0 pypi icu 58.2 h0a44026_3 defaults idna 2.10 pyhd3eb1b0_0 defaults imagesize 1.2.0 pyhd3eb1b0_0 defaults importlib-metadata 3.10.0 py39hecd8cb5_0 defaults importlib_metadata 3.10.0 hd3eb1b0_0 defaults inflection 0.5.1 py39hecd8cb5_0 defaults install 1.3.4 pypi_0 pypi intel-openmp 2021.3.0 hecd8cb5_3375 defaults intervaltree 3.1.0 py_0 defaults ipykernel 5.3.4 py39h01d92e1_0 defaults ipython 7.22.0 py39h01d92e1_0 defaults ipython_genutils 0.2.0 pyhd3eb1b0_1 defaults isort 5.9.2 pyhd3eb1b0_0 defaults itsdangerous 2.0.1 pyhd3eb1b0_0 defaults jdcal 1.4.1 py_0 defaults jedi 0.17.2 py39hecd8cb5_1 defaults jinja2 2.11.3 pyhd3eb1b0_0 defaults jinja2-time 0.2.0 pyhd3eb1b0_2 defaults joblib 1.0.1 pyhd3eb1b0_0 defaults jpeg 9b he5867d9_2 defaults jsonschema 3.2.0 py_2 defaults jupyter_client 6.1.12 pyhd3eb1b0_0 defaults jupyter_core 4.7.1 py39hecd8cb5_0 defaults jupyterlab_pygments 0.1.2 py_0 defaults keyring 23.0.1 py39hecd8cb5_0 defaults kiwisolver 1.3.1 py39h23ab428_0 defaults kneed 0.7.0 pyh9f0ad1d_0 conda-forge krb5 1.19.2 hcd88c3b_0 defaults lazy-object-proxy 1.6.0 py39h9ed2024_0 defaults lcms2 2.12 hf1fd2bf_0 defaults libcurl 7.78.0 hb8e4fae_0 defaults libcxx 10.0.0 1 defaults libdb 6.2.32 h0a44026_0 defaults libedit 3.1.20210714 h9ed2024_0 defaults libev 4.33 h9ed2024_1 defaults libffi 3.3 hb1e8313_2 defaults libgfortran 3.0.1 h93005f0_2 defaults libiconv 1.16 h1de35cc_0 defaults libnghttp2 1.41.0 h7580e61_2 defaults libpng 1.6.37 ha441bb4_0 defaults libsodium 1.0.18 h1de35cc_0 defaults libspatialindex 1.9.3 h23ab428_0 defaults libssh2 1.9.0 ha12b0ac_1 defaults libta-lib 0.4.0 haf1e3a3_0 conda-forge libtiff 4.2.0 h87d7836_0 defaults libwebp-base 1.2.0 h9ed2024_0 defaults libxml2 2.9.12 hcdb78fc_0 defaults libxslt 1.1.34 h83b36ba_0 defaults linearmodels 4.24 pypi_0 pypi llvm-openmp 10.0.0 h28b9765_0 defaults lxml 4.6.3 py39h26b266a_0 defaults lz4-c 1.9.3 h23ab428_0 defaults markupsafe 1.1.1 py39h9ed2024_0 defaults matplotlib 3.3.4 py39hecd8cb5_0 defaults matplotlib-base 3.3.4 py39h8b3ea08_0 defaults mccabe 0.6.1 py39hecd8cb5_1 defaults mistune 0.8.4 py39h9ed2024_1000 defaults mkl 2021.3.0 hecd8cb5_517 defaults mkl-service 2.4.0 py39h9ed2024_0 defaults mkl_fft 1.3.0 py39h4a7008c_2 defaults mkl_random 1.2.2 py39hb2f4e1b_0 defaults money 1.3.0 pypi_0 pypi mpi 1.0 mpich defaults mpich 3.3.2 hc856adb_0 defaults multitasking 0.0.9 pypi_0 pypi mypy_extensions 0.4.3 py39hecd8cb5_0 defaults mysql 5.7.24 h56848d4_0 defaults mysql-connector-c 6.1.11 hccea1a4_1 defaults mysql-connector-python 8.0.27 pypi_0 pypi mysqlclient 2.0.3 py39h23ab428_1 defaults nbclient 0.5.3 pyhd3eb1b0_0 defaults nbconvert 6.1.0 py39hecd8cb5_0 defaults nbformat 5.1.3 pyhd3eb1b0_0 defaults ncurses 6.2 h0a44026_1 defaults nest-asyncio 1.5.1 pyhd3eb1b0_0 defaults numexpr 2.7.3 py39h5873af2_1 defaults numpy 1.21.1 pypi_0 pypi numpy-base 1.20.3 py39he0bd621_0 defaults numpy-financial 1.0.0 pyhd8ed1ab_0 conda-forge numpydoc 1.1.0 pyhd3eb1b0_1 defaults olefile 0.46 py_0 defaults openjpeg 2.3.0 hb95cd4c_1 defaults openpyxl 3.0.7 pyhd3eb1b0_0 defaults openssl 1.1.1m hca72f7f_0 defaults osqp 0.6.2.post0 pypi_0 pypi packaging 21.0 pyhd3eb1b0_0 defaults pandas 1.3.1 pypi_0 pypi pandas-datareader 0.10.0 pyhd3eb1b0_0 defaults pandocfilters 1.4.3 py39hecd8cb5_1 defaults paramiko 2.7.2 py_0 defaults parso 0.7.0 py_0 defaults pathspec 0.7.0 py_0 defaults patsy 0.5.1 py39hecd8cb5_0 defaults pcre 8.45 h23ab428_0 defaults pdftotext 2.1.6 pypi_0 pypi pexpect 4.8.0 pyhd3eb1b0_3 defaults pickleshare 0.7.5 pyhd3eb1b0_1003 defaults pikepdf 2.16.1 pypi_0 pypi pillow 8.3.1 py39ha4cf6ea_0 defaults pip 21.1.3 py39hecd8cb5_0 defaults pixman 0.40.0 h9ed2024_1 defaults plotly 5.5.0 pyhd8ed1ab_0 conda-forge pluggy 0.13.1 py39hecd8cb5_0 defaults pmdarima 1.8.3 pypi_0 pypi poppler 0.81.0 h031bf0f_2 defaults poppler-data 0.4.10 hecd8cb5_0 defaults poyo 0.5.0 pyhd3eb1b0_0 defaults prompt-toolkit 3.0.17 pyh06a4308_0 defaults property-cached 1.6.4 py_0 conda-forge protobuf 3.19.1 pypi_0 pypi psutil 5.8.0 py39h9ed2024_1 defaults ptyprocess 0.7.0 pyhd3eb1b0_2 defaults pycodestyle 2.6.0 pyhd3eb1b0_0 defaults pycparser 2.20 py_2 defaults pydocstyle 6.1.1 pyhd3eb1b0_0 defaults pyflakes 2.2.0 pyhd3eb1b0_0 defaults pygments 2.9.0 pyhd3eb1b0_0 defaults pyhdfe 0.1.0 pypi_0 pypi pylint 2.9.6 py39hecd8cb5_1 defaults pyls-black 0.4.6 hd3eb1b0_0 defaults pyls-spyder 0.3.2 pyhd3eb1b0_0 defaults pymysql 1.0.2 py39hecd8cb5_1 defaults pynacl 1.4.0 py39h9ed2024_1 defaults pyopenssl 20.0.1 pyhd3eb1b0_1 defaults pyparsing 2.4.7 pyhd3eb1b0_0 defaults pypdf2 1.26.0 py_2 conda-forge pyportfolioopt 1.4.2 pypi_0 pypi pyqt 5.9.2 py39h23ab428_6 defaults pyrsistent 0.18.0 py39h9ed2024_0 defaults pysocks 1.7.1 py39hecd8cb5_0 defaults python 3.9.6 h88f2d9e_0 defaults python-configuration 0.8.2 pypi_0 pypi python-dateutil 2.8.2 pyhd3eb1b0_0 defaults python-jsonrpc-server 0.4.0 py_0 defaults python-language-server 0.36.2 pyhd3eb1b0_0 defaults python-slugify 5.0.2 pyhd3eb1b0_0 defaults python.app 3 py39hca72f7f_0 defaults python_abi 3.9 2_cp39 conda-forge pytz 2021.1 pyhd3eb1b0_0 defaults pyxirr 0.7.1 pypi_0 pypi pyyaml 5.4.1 py39h9ed2024_1 defaults pyzmq 20.0.0 py39h23ab428_1 defaults qdarkstyle 3.0.2 pyhd3eb1b0_0 defaults qdldl 0.1.5.post0 pypi_0 pypi qstylizer 0.1.10 pyhd3eb1b0_0 defaults qt 5.9.7 h468cd18_1 defaults qtawesome 1.0.2 pyhd3eb1b0_0 defaults qtconsole 5.1.0 pyhd3eb1b0_0 defaults qtpy 1.9.0 py_0 defaults readline 8.1 h9ed2024_0 defaults refinitiv-dataplatform 1.0.0a9 pypi_0 pypi regex 2021.8.3 py39h9ed2024_0 defaults requests 2.26.0 pyhd3eb1b0_0 defaults requests-async 0.6.2 pypi_0 pypi rfc3986 1.5.0 pypi_0 pypi rope 0.19.0 pyhd3eb1b0_0 defaults rtree 0.9.7 py39hecd8cb5_1 defaults scikit-learn 0.24.2 py39hb2f4e1b_0 defaults scikit-learn-intelex 2021.3.0 py39hecd8cb5_0 defaults scipy 1.7.0 pypi_0 pypi scs 2.1.4 pypi_0 pypi seaborn 0.11.1 pyhd3eb1b0_0 defaults setuptools 52.0.0 py39hecd8cb5_0 defaults sip 4.19.13 py39h23ab428_0 defaults six 1.16.0 pyhd3eb1b0_0 defaults sniffio 1.2.0 pypi_0 pypi snowballstemmer 2.1.0 pyhd3eb1b0_0 defaults sortedcontainers 2.4.0 pyhd3eb1b0_0 defaults sphinx 4.0.2 pyhd3eb1b0_0 defaults sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0 defaults sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0 defaults sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0 defaults sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0 defaults sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0 defaults sphinxcontrib-serializinghtml 1.1.5 pyhd3eb1b0_0 defaults spyder 5.0.5 py39hecd8cb5_2 defaults spyder-kernels 2.0.5 py39hecd8cb5_0 defaults sqlalchemy 1.4.27 py39hca72f7f_0 defaults sqlite 3.37.0 h707629a_0 defaults stargazer 0.0.5 pypi_0 pypi statsmodels 0.12.2 py39h9ed2024_0 defaults ta-lib 0.4.19 py39hc89836e_3 conda-forge tabula-py 2.2.0 pypi_0 pypi tabulate 0.8.9 py39hecd8cb5_0 defaults tbb 2021.3.0 hf7b0b51_0 defaults tenacity 8.0.1 py39hecd8cb5_0 defaults testpath 0.5.0 pyhd3eb1b0_0 defaults text-unidecode 1.3 py_0 defaults textdistance 4.2.1 pyhd3eb1b0_0 defaults threadpoolctl 2.2.0 pyhb85f177_0 defaults three-merge 0.1.1 pyhd3eb1b0_0 defaults tinycss 0.4 pyhd3eb1b0_1002 defaults tk 8.6.10 hb0a8c7a_0 defaults toml 0.10.2 pyhd3eb1b0_0 defaults tornado 6.1 py39h9ed2024_0 defaults traitlets 5.0.5 pyhd3eb1b0_0 defaults typed-ast 1.4.3 py39h9ed2024_1 defaults typing_extensions 3.10.0.0 pyh06a4308_0 defaults tzdata 2021e hda174b7_0 defaults ujson 4.0.2 py39h23ab428_0 defaults unidecode 1.2.0 pyhd3eb1b0_0 defaults urllib3 1.26.6 pyhd3eb1b0_1 defaults validators 0.18.2 pypi_0 pypi watchdog 2.1.3 py39hd5f6b7e_0 defaults wcwidth 0.2.5 py_0 defaults webencodings 0.5.1 py39hecd8cb5_1 defaults websocket-client 1.1.0 pypi_0 pypi werkzeug 2.0.2 pyhd3eb1b0_0 defaults wheel 0.37.0 pyhd3eb1b0_1 defaults whichcraft 0.6.1 pyhd3eb1b0_0 defaults wrapt 1.12.1 py39h9ed2024_1 defaults wurlitzer 2.1.1 py39hecd8cb5_0 defaults xlrd 2.0.1 pyhd3eb1b0_0 defaults xz 5.2.5 h1de35cc_0 defaults yaml 0.2.5 haf1e3a3_0 defaults yapf 0.31.0 pyhd3eb1b0_0 defaults yfinance 0.1.70 pypi_0 pypi zeromq 4.3.4 h23ab428_0 defaults zipp 3.5.0 pyhd3eb1b0_0 defaults zlib 1.2.11 h1de35cc_3 defaults zope-interface 5.4.0 pypi_0 pypi zstd 1.4.9 h322a384_0 defaults ```
csoja commented 2 years ago

In the environment you list - I do not see conda or the anaconda metapackage installed. It looks like your version of conda is already the latest version - so I would not expect it to update as it is already at the latest. The anaconda metapackage pins to the package versions included in the Anaconda Individual Edition installer releases. You can find the package lists with versions here: https://docs.anaconda.com/anaconda/packages/ If you conda install anaconda - instead of update, you will then be able to update that in the future for the environment you've listed. Or if you are just looking to update all the packages in your active environment conda update --all might be what you are looking for.
I'm going to close this issue though - as it looks like conda is behaving as expected here.