Conda:如何从基本环境到新环境安装python软件包 [英] Conda : How to install a python packages from base environment to new environment

查看:520
本文介绍了Conda:如何从基本环境到新环境安装python软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在没有连接互联网的情况下在计算机上安装了anaconda发行版.

I have anaconda distribution installed on a computer without connection to the internet.

我创建了一个新环境并激活了它 使用以下命令:

i have created a new environment and activated it using the following commands:

conda install -p c:\python\test_env --offline

然后

conda activate c:\python\test_env

能否请您指导我如何安装到这个新环境中 以下项目,

Could you please instruct me how to install into this new environment the following items,

,包括其依赖性,

全部来自(基本)环境:

python

jupyter实验室

jupyter lab

熊猫

推荐答案

Clone it (but first delete test_env to start fresh):

conda create --name test_env --clone base

这将保留所有库,软件包及其依赖项-不会影响base.

This'll carry over all libraries, packages, and their dependencies - without affecting base.

这篇关于Conda:如何从基本环境到新环境安装python软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆