简体   繁体   中英

Installing packages in virtual environment using anaconda for different projects

Do we need to install same conda packages repeatedly for different virtual environments? Is there a way to reuse python packages from one virtualenv to other? Is there a way to use global conda packages within a virtual environment?

You can copy the packages in one environment to other using the following command..

conda create -n --clone

For example, default environment is "base" and i want to copy it to a new env "new", then...

conda create -n new --clone base

For more options, type...

conda create -h 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM