I've been using Anaconda as my package manager but was unaware that it is recommended to install additional packages within virtual environments rather than globally. As a result, I've been installing all packages in my base environment by simply opening a terminal window and running commands such as:
pip3 install requests_html
conda install sklearn
This seemed to work fine for a while until I recently decided to try updating my packages. I tried running
conda update --all
which then provided a list of all the packages that will be updated. However, it also said that some packages will be downgraded instead, which after some googling seems to be due to version conflicts which is why environments are recommended.
Sample output:
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /Users/mahuja/opt/anaconda3
The following packages will be downloaded:
package | build
---------------------------|-----------------
_anaconda_depends-2020.07 | py38_0 6 KB
anaconda-custom | py38_1 35 KB
anaconda-navigator-1.10.0 | py38_0 6.2 MB
anaconda-project-0.9.1 | pyhd3eb1b0_1 215 KB
appdirs-1.4.4 | py_0 13 KB
appnope-0.1.2 |py38hecd8cb5_1001 10 KB
argon2-cffi-20.1.0 | py38haf1e3a3_1 44 KB
asn1crypto-1.4.0 | py_0 80 KB
backports-1.0 | pyhd3eb1b0_2 210 KB
backports.functools_lru_cache-1.6.1| pyhd3eb1b0_0 12 KB
backports.shutil_get_terminal_size-1.0.0| pyhd3eb1b0_3 10 KB
backports.tempfile-1.0 | pyhd3eb1b0_1 11 KB
beautifulsoup4-4.9.3 | pyha847dfd_0 86 KB
bitarray-1.6.3 | py38h9ed2024_1 92 KB
black-19.10b0 | py_0 86 KB
bleach-3.2.2 | pyhd3eb1b0_0 113 KB
blosc-1.20.1 | hab81aa3_0 56 KB
bokeh-2.2.3 | py38_0 5.3 MB
brotli-1.0.9 | hb1e8313_2 398 KB
brotlipy-0.7.0 |py38h9ed2024_1003 331 KB
gevent-21.1.1 | py38h9ed2024_1 1.5 MB
giflib-5.1.4 | h1de35cc_1 59 KB
glib-2.66.1 | h9bbe63b_0 2.7 MB
glob2-0.7 | pyhd3eb1b0_0 12 KB
greenlet-0.4.17 | py38haf1e3a3_0 20 KB
idna-2.10 | pyhd3eb1b0_0 52 KB
imagecodecs-2021.1.11 | py38h2ea9c00_1 5.4 MB
importlib-metadata-2.0.0 | py_1 35 KB
importlib_metadata-2.0.0 | 1 11 KB
iniconfig-1.1.1 | pyhd3eb1b0_0 8 KB
intervaltree-3.1.0 | py_0 26 KB
ipykernel-5.3.4 | py38h5ca1d4c_0 180 KB
ipython-7.19.0 | py38h01d92e1_1 991 KB
ipython_genutils-0.2.0 | pyhd3eb1b0_1 27 KB
ipywidgets-7.6.3 | pyhd3eb1b0_1 105 KB
isort-5.6.4 | py_0 78 KB
jedi-0.17.2 | py38hecd8cb5_1 923 KB
jinja2-2.11.2 | pyhd3eb1b0_0 93 KB
joblib-1.0.0 | pyhd3eb1b0_0 208 KB
jsonschema-3.2.0 | py_2 47 KB
jupyter_client-6.1.7 | py_0 77 KB
jupyter_console-6.2.0 | py_0 26 KB
jupyter_core-4.7.0 | py38hecd8cb5_0 68 KB
jupyterlab-2.2.6 | py_0 3.4 MB
jupyterlab_pygments-0.1.2 | py_0 8 KB
jupyterlab_widgets-1.0.0 | pyhd3eb1b0_1 109 KB
jxrlib-1.1 | haf1e3a3_2 206 KB
matplotlib-base-3.3.2 | py38h181983e_0 5.1 MB
mkl_fft-1.2.0 | py38hc64f4ea_0 143 KB
mock-4.0.3 | pyhd3eb1b0_0 29 KB
more-itertools-8.6.0 | pyhd3eb1b0_0 40 KB
msgpack-python-1.0.1 | py38hf7b0b51_0 75 KB
mypy_extensions-0.4.3 | py38_0 9 KB
nbclient-0.5.1 | py_0 58 KB
nbconvert-6.0.7 | py38_0 483 KB
nbformat-5.1.2 | pyhd3eb1b0_1 68 KB
nest-asyncio-1.4.3 | pyhd3eb1b0_0 11 KB
networkx-2.5 | py_0 1.1 MB
nose-1.3.7 | pyhd3eb1b0_1006 128 KB
notebook-6.2.0 | py38hecd8cb5_0 4.1 MB
numba-0.51.2 | py38h6440ff4_1 3.1 MB
numexpr-2.7.2 | py38h16bde0e_0 120 KB
numpy-1.19.2 | py38h456fd55_0 21 KB
numpy-base-1.19.2 | py38hcfb5961_0 4.0 MB
numpydoc-1.1.0 | pyhd3eb1b0_1 42 KB
openjpeg-2.3.0 | hb95cd4c_1 281 KB
openpyxl-3.0.6 | pyhd3eb1b0_0 159 KB
openssl-1.1.1i | h9ed2024_0 2.2 MB
packaging-20.8 | pyhd3eb1b0_0 36 KB
pandas-1.2.1 | py38hb2f4e1b_0 8.3 MB
pandoc-2.11 | h0dc7051_0 10.8 MB
pandocfilters-1.4.3 | py38hecd8cb5_1 14 KB
path-15.0.1 | py38hecd8cb5_0 37 KB
path.py-12.5.0 | 0 4 KB
pathlib2-2.3.5 | py38hecd8cb5_2 38 KB
pathspec-0.7.0 | py_0 26 KB
pexpect-4.8.0 | pyhd3eb1b0_3 53 KB
pickleshare-0.7.5 | pyhd3eb1b0_1003 13 KB
pillow-8.1.0 | py38h5270095_0 590 KB
pip-20.3.3 | py38hecd8cb5_0 1.8 MB
pkginfo-1.7.0 | py38hecd8cb5_0 43 KB
prometheus_client-0.9.0 | pyhd3eb1b0_0 45 KB
prompt-toolkit-3.0.8 | py_0 248 KB
prompt_toolkit-3.0.8 | 0 12 KB
psutil-5.7.2 | py38haf1e3a3_0 341 KB
ptyprocess-0.7.0 | pyhd3eb1b0_2 17 KB
py-1.10.0 | pyhd3eb1b0_0 76 KB
pycurl-7.43.0.6 | py38hddc9c9b_0 66 KB
pydocstyle-5.1.1 | py_0 38 KB
pyerfa-1.7.1.1 | py38h9ed2024_1 296 KB
pygments-2.7.4 | pyhd3eb1b0_0 676 KB
pylint-2.6.0 | py38_0 438 KB
pyls-black-0.4.6 | hd3eb1b0_0 9 KB
pyls-spyder-0.3.0 | pyhd3eb1b0_0 10 KB
pyopenssl-20.0.1 | pyhd3eb1b0_1 49 KB
pyparsing-2.4.7 | pyhd3eb1b0_0 59 KB
pyrsistent-0.17.3 | py38haf1e3a3_0 89 KB
pytest-6.2.1 | py38hecd8cb5_0 427 KB
python-3.8.5 | h26836e1_1 20.6 MB
python-jsonrpc-server-0.4.0| py_0 12 KB
python-language-server-0.36.2| pyhd3eb1b0_0 41 KB
python-libarchive-c-2.9 | pyhd3eb1b0_0 46 KB
python.app-3 | py38h9ed2024_0 20 KB
pytz-2020.5 | pyhd3eb1b0_0 182 KB
pywavelets-1.1.1 | py38haf1e3a3_2 3.4 MB
pyyaml-5.4.1 | py38h9ed2024_1 165 KB
pyzmq-20.0.0 | py38h23ab428_1 405 KB
qtawesome-1.0.1 | py_0 757 KB
qtconsole-4.7.7 | py_0 96 KB
regex-2020.11.13 | py38h9ed2024_0 310 KB
requests-2.25.1 | pyhd3eb1b0_0 52 KB
ripgrep-12.1.1 | 0 1.3 MB
rope-0.18.0 | py_0 126 KB
scikit-image-0.17.2 | py38h81aa140_0 8.9 MB
scikit-learn-0.23.2 | py38h959d312_0 4.7 MB
scipy-1.5.2 | py38h2515648_0 13.3 MB
seaborn-0.11.1 | pyhd3eb1b0_0 212 KB
send2trash-1.5.0 | pyhd3eb1b0_1 14 KB
setuptools-51.3.3 | py38hecd8cb5_4 727 KB
singledispatch-3.4.0.3 | py_1001 12 KB
six-1.15.0 | py38hecd8cb5_0 27 KB
snowballstemmer-2.1.0 | pyhd3eb1b0_0 62 KB
sortedcollections-2.1.0 | pyhd3eb1b0_0 12 KB
sortedcontainers-2.3.0 | pyhd3eb1b0_0 26 KB
soupsieve-2.1 | pyhd3eb1b0_0 31 KB
sphinx-3.4.3 | pyhd3eb1b0_0 1.1 MB
sphinxcontrib-websupport-1.2.4| py_0 34 KB
spyder-4.2.0 | py38hecd8cb5_0 5.7 MB
spyder-kernels-1.10.1 | py38hecd8cb5_0 101 KB
sqlalchemy-1.3.21 | py38h9ed2024_0 1.5 MB
sqlite-3.33.0 | hffcf06c_0 1.3 MB
statsmodels-0.12.1 | py38h9ed2024_0 8.2 MB
sympy-1.7.1 | py38hecd8cb5_0 8.8 MB
tbb-2020.3 | h879752b_0 147 KB
tblib-1.7.0 | py_0 16 KB
terminado-0.9.2 | py38hecd8cb5_0 25 KB
three-merge-0.1.1 | pyhd3eb1b0_0 10 KB
tifffile-2021.1.14 | pyhd3eb1b0_1 126 KB
toolz-0.11.1 | pyhd3eb1b0_0 46 KB
tornado-6.1 | py38h9ed2024_0 585 KB
tqdm-4.55.1 | pyhd3eb1b0_0 77 KB
traitlets-5.0.5 | py_0 83 KB
typed-ast-1.4.2 | py38h9ed2024_1 183 KB
typing_extensions-3.7.4.3 | py_0 28 KB
ujson-4.0.2 | py38h23ab428_0 46 KB
unixodbc-2.3.9 | haf1e3a3_0 251 KB
urllib3-1.26.2 | pyhd3eb1b0_0 105 KB
watchdog-0.10.4 | py38h9ed2024_0 96 KB
wheel-0.36.2 | pyhd3eb1b0_0 33 KB
wrapt-1.11.2 | py38h9ed2024_0 45 KB
xlrd-2.0.1 | pyhd3eb1b0_0 90 KB
xlsxwriter-1.3.7 | py_0 108 KB
xlwings-0.21.4 | py38hecd8cb5_0 446 KB
zeromq-4.3.3 | hb1e8313_3 414 KB
zfp-0.5.5 | h23ab428_4 147 KB
zipp-3.4.0 | pyhd3eb1b0_0 15 KB
zope.event-4.5.0 | py38_0 209 KB
zope.interface-5.2.0 | py38h9ed2024_0 281 KB
------------------------------------------------------------
Total: 201.5 MB
The following NEW packages will be INSTALLED:
_anaconda_depends pkgs/main/osx-64::_anaconda_depends-2020.07-py38_0
appdirs pkgs/main/noarch::appdirs-1.4.4-py_0
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…