As far as I know, I believe what conda do about python pkgs is not more than
- manage the python pkg installing path and which path to find python pkgs.
~/miniconda/envs/$(env-name)/lib//$(python-version)/site-packages/...
- Automatically install dependencies of python pkgs in these inter-env-seperate pathes
And I believe:
- If you use
~/miniconda/bin/pip
orconda install
to install python pkgs, all the dependencies will be install into~/miniconda/envs/<env-name>/lib/<python-version>
, and~/miniconda/bin/python
can find them - If a python pkg pyfoo depends on a c++ libary libfoo already installed by
apt install
into/usr/lib/<python-version>
,conda install pyfoo
will install libfoo again into~/miniconda/envs/<env-name>/lib/<python-version>
- If you use
apt
to install python pkgs, the install path will be/usr/lib/<python-version>
and conda can't find them.
My question is:
- Am i right?
- Does
apt install
c++ libs conflicts with any of c++ libs installed into~/miniconda/envs/<env-name>/lib/<python-version>
and verse vice? - Can i just use conda to manage python pkgs in different env and
apt
to manage c++ pkgs without worrying about any conflicts? Which means when i build and run a hybird(c++ and python) project, i just need activate the conda env andconda install
all the python dependencies andapt install
all desired c++ deps, everything will work fine?