Use pip
instead of conda
.
Nowadays, Conda
is pretty much broken because its native algorithm does not scale with the number of packages in real-world applications. Its developers are stubborn and reluctant to change and adapt, turning the toolkit more and more useless and hopeless.
FYI, both pip
and conda
are Python package managers (developed by different groups of people).
For common Python package installation such as sympy
and mpmath
, you can
- either use Python pip installation:
~/anaconda3/bin/python -m pip install sympy mpmath
(if your anaconda3 is installed in your home folder, at ~/anaconda3; this command will install Python packages into any folder that your anaconda3 is currently located at (or installed at), e.g., if your anaconda3 is installed at /anaconda3 but moved to /opt/anaconda3, then running /opt/anaconda3/bin/python -m pip install sympy mpmath
will install anaconda3 into /opt/anaconda3; you can run /opt/anaconda3/pip install sympy mpmath
if your anaconda3 is originally installed at /opt/anaconda3 and not relocated) to install the packages into anaconda3's folder, i.e., ~/anaconda3/lib/python3.*/site-packages/
- or Linux native installation (e.g. for Ubuntu/Debian-based-Linux):
apt-get install python3-sympy python3-mpmath
to install the packages into the system folder, i.e., /usr/lib/python3/dist-packages/
- If you use Python conda installation:
~/anaconda3/bin/python -m conda install sympy mpmath
you often need to wait for hours and might end up with failure or even a corrupted anaconda installation (which I have encountered once in a while and then have to re-install anaconda3 completely).
Some notes to conda
developers:
- by default, you should not perform a full check on the integrity of all installed packages, just keep an index file listing each package's installation state
- add an option to perform full integrity check on all packages. Since your full integrity check is on per-file level, maybe it can find and solve some conflicts that
pip
cannot do.
mamba
. You still have to get that installed into base, which still may have the initial solving issue. https://mcmap.net/q/377704/-conda-takes-20-minutes-to-solve-environment-when-package-is-already-installed – Saccharine