Clone some packages from base env to another one

淺唱寂寞╮ 提交于 2019-12-11 04:47:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!