列出Anaconda中已安装的python开发环境

时间:2018-03-28 23:03:20

标签: python anaconda

很久以前我安装了Anaconda,但是我忘了用来设置python开发环境的名字?是否有任何命令可以让我列出所有已安装的环境?感谢。

3 个答案:

答案 0 :(得分:1)

检查文档:https://conda.io/docs/user-guide/tasks/manage-environments.html

尝试:In [171]: %timeit np.array(list(bin(int.from_bytes(by, byteorder='big'))[2:])) == '1' 3.51 µs ± 38 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) In [172]: %timeit np.unpackbits(np.frombuffer(by, np.uint8)) 2.05 µs ± 29.59 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) In [173]: %timeit np.array(list(bin(struct.unpack('>H', by)[0])[2:])) == '1' 2.65 µs ± 6.8 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

答案 1 :(得分:1)

Here指定您可以使用2个不同的命令列出已安装的环境:

  1. conda info --envs
  2. conda env list

答案 2 :(得分:1)

Conda Cheatsheet会帮助你。要简单列出所有已安装的Conda环境,请打开终端并键入:

$stmt = $con->prepare('SELECT id from admin where password = ? AND username = ?');
$stmt->bind_param('ss', $password, $username); // note the order
$stmt->execute();
$stmt->bind_result($id);
if ($stmt->fetch()) {
    $_SESSION['login_user'] = $username;
    $_SESSION['login_user_id'] = $id; // probably important
    header("Location: confirm.php");
    exit; // always exit after a "Location" header
} else {
    $error = "Username or Password is incorrect";
}

对于$ conda env list ,有效环境(git branch上的默认值)将显示为base