python - how to reuse global site-packages in conda env -
i have project called abc
, have conda env in fold ~/anaconda/envs/abc
, believe venv, , want use specific packages global site packages.
for normal python installation can done removing no-global-site-package.txt venv folder, or setting venv use global-site-packages, didn't find equivalent approach in anaconda. online documentation not have answer either.
how anaconda?
you cannot explicitly in conda, principle envs entirely separate.
but current default behavior of conda
allow all global user site-packages seen within environments, mentioned in question. so, default behavior allow wish, there no way allow "some specific" global packages requested.
this behavior has caused one or two issues. avoid it, export pythonnousersite=1
before source activate <your env>
. note devs planning change default behavior set pythonnousersite=1
in 4.4.0 (per second issue linked).
Comments
Post a Comment