[英]conda change python version between 2 and 3
I'm learning using conda
to control environment of python in windows 10 powershell, following this doc . 我正在学习使用
conda
来控制windows 10 powershell中的python环境,遵循这个doc 。
It says the current environment should be shown parentheses or brackets 它说当前环境应该显示括号或括号
Which of these environments are you using right now – snowflakes or bunnies?
您现在正在使用以下哪种环境 - 雪花还是兔子? To find out, type the same command:
要查找,请键入相同的命令:
conda info --envs
conda info --envs
Conda displays the list of all environments, with the current environment shown in (parentheses) or [brackets] in front of your prompt:
Conda显示所有环境的列表,当前环境显示在提示前面的(括号)或[括号]中:
(snowflakes)
(雪花)
NOTE: conda also puts an asterisk (*) in front of the active environment in your environment list;
注意:conda还会在环境列表中的活动环境前放置一个星号(*); see above in “List all environments.”
请参阅上面的“列出所有环境”。
My questions are: 1. why i don't see parentheses/brackets 我的问题是:1。为什么我看不到括号/括号
activate python2
does work? activate python2
确实有效? Code at powershell: powershell的代码:
PS C:\\Users\\yzhang> conda info --envs
PS C:\\ Users \\ yzhang> conda info --envs
conda environments:
conda环境:
python2 d:\\Anaconda3\\envs\\python2
python2 d:\\ Anaconda3 \\ envs \\ python2
root * d:\\Anaconda3
root * d:\\ Anaconda3
PS C:\\Users\\yzhang> activate python2
PS C:\\ Users \\ yzhang>激活python2
prepending d:\\Anaconda3\\envs\\python2 and d:\\Anaconda3\\envs\\python2\\Library\\mingw-w64\\bin and d:\\Anaconda3\\env s\\python2\\Library\\usr\\bin and d:\\Anaconda3\\envs\\python2\\Library\\bin and d:\\Anaconda3\\envs\\python2\\Scripts to PATH
预先添加d:\\ Anaconda3 \\ envs \\ python2和d:\\ Anaconda3 \\ envs \\ python2 \\ Library \\ mingw-w64 \\ bin和d:\\ Anaconda3 \\ env s \\ python2 \\ Library \\ usr \\ bin和d:\\ Anaconda3 \\ envs \\ python2 \\ Library \\ bin和d:\\ Anaconda3 \\ envs \\ python2 \\脚本到PATH
PS C:\\Users\\yzhang> conda info --envs
PS C:\\ Users \\ yzhang> conda info --envs
conda environments:
conda环境:
python2 d:\\Anaconda3\\envs\\python2
python2 d:\\ Anaconda3 \\ envs \\ python2
root * d:\\Anaconda3
root * d:\\ Anaconda3
PS C:\\Users\\yzhang> python --version
PS C:\\ Users \\ yzhang> python --version
Python 3.5.1 :: Anaconda 4.0.0 (64-bit)
Python 3.5.1 :: Anaconda 4.0.0(64位)
I've verified there's python27
in path d:\\\\Anaconda3\\\\envs\\\\python2
我已经验证有
python27
路径d:\\\\Anaconda3\\\\envs\\\\python2
Full support for activate
/ deactivate
in Windows PowerShell has not currently been implemented. 目前尚未实现对Windows PowerShell中的
activate
/ deactivate
完全支持。 There is an open Pull Request at https://github.com/conda/conda/pull/2366 that you may be interested in tracking. 在https://github.com/conda/conda/pull/2366上有一个公开的Pull请求,您可能对跟踪感兴趣。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.