问题
I installed anaconda. So I already have a lot of packages installed. Now I created new one env (almost empty). And start to install some specific packages to it. I have no internet on this machine, so I need to copy wheels or source files to it.
Ok, it works, but Why I need to download and copy some packages like numpy when I already have it in base env?
So my question is - How to install packages to new env if I already have them in base? --use-locals key or smth else?
I found this one question. But I don't want to copy all of packages! I don't need all of them. I need 10-20 specific of them!
回答1:
I found the answer: just use --offline
option:
conda activate my_env
conda install numpy --offline
来源:https://stackoverflow.com/questions/59102511/clone-some-packages-from-base-env-to-another-one