admin管理员组

文章数量:1130349

cmd命令行输入python会发现无法引入已经安装好的库,出现如下警告:

Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated.  Libraries may fail to load.  To activate this environment
please see https://conda.io/activation

此时需要激活anaconda,具体为什么有兴趣的同学可以参考其他的相关博文,激活步骤如下,在命令行中输入(已经添加环境变量):

1)conda info -e 
# 会出现以下内容    
#  WARNING: The condapat module is deprecated and will be removed in a future release.
# conda environments:
#base                  *  D:\Anaconda3
2)activate d:\Anaconda3
# (base) C:\Users 命令行前面会加一个(base)
# 此时可以运行python,导入相关的库
3)conda deactivate
# 执行完成后记得关闭激活

cmd命令行输入python会发现无法引入已经安装好的库,出现如下警告:

Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated.  Libraries may fail to load.  To activate this environment
please see https://conda.io/activation

此时需要激活anaconda,具体为什么有兴趣的同学可以参考其他的相关博文,激活步骤如下,在命令行中输入(已经添加环境变量):

1)conda info -e 
# 会出现以下内容    
#  WARNING: The condapat module is deprecated and will be removed in a future release.
# conda environments:
#base                  *  D:\Anaconda3
2)activate d:\Anaconda3
# (base) C:\Users 命令行前面会加一个(base)
# 此时可以运行python,导入相关的库
3)conda deactivate
# 执行完成后记得关闭激活

本文标签: