如果列出我的python环境,我会得到许多未命名或无名的环境:
open("/dev/sr0", O_RDONLY|O_NONBLOCK) = 3
我可以使用它们的路径名来激活它们,但是不能使用短名称来激活它们:
<form class="form-inline" action="mailto:user@gmail.com?subject=oggetto" method="post" enctype="text/plain">
<div class="col-md-4 col-sm-4">
<div class="form-group">
<label for="name" class="sr-only">Nome e Cognome</label>
<input type="text" name="name" class="form-control" id="name" placeholder="Nome e Cognome">
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class="form-group">
<label for="bambini" class="sr-only">Numero bambini</label>
<input type="name" name="bambini" class="form-control" id="numBambini" placeholder="Numero di bambini">
</div>
</div>
<div class="col-md-4 col-sm-4">
<input type="submit" class="btn btn-default btn-block">
</input>
</div>
</form>
但是我不能使用简称:
(base)$ conda env list
# conda environments:
#
/Users/drf/anaconda
/Users/drf/anaconda/envs/arc
/Users/drf/anaconda/envs/grids
/Users/drf/anaconda/envs/junk
/Users/drf/anaconda/envs/msr
/Users/drf/anaconda/envs/py27
base * /Users/drf/anaconda/envs/py37
/Users/drf/anaconda/envs/pygridgen
/Users/drf/anaconda/envs/pynomo
/Users/drf/anaconda/envs/python3
/Users/drf/anaconda/envs/pytides
/Users/drf/anaconda/envs/pytides3
/Users/drf/anaconda/envs/wxpython
(base)$
短名称存储在哪里,如何获得其实用程序?
答案 0 :(得分:0)
确保禁用激活的环境。如果您创建多个环境并激活它们,它们将充当子进程,并且无法识别父级中的更改。
答案 1 :(得分:0)
升级conda和anaconda时遇到了同样的问题。您需要使用以下方法将路径添加到您的环境中:
conda config --add envs_dirs <path to envs>
例如,升级后,我得到以下信息:
(base) $ conda info --envs
# conda environments:
#
/Users/mah/anaconda
/Users/mah/anaconda/envs/ase3
base * /Users/mah/opt/anaconda3
请注意,我的旧环境位于/ Users / mah / anaconda…中,而我的新安装期望该环境位于/ Users / mah / opt / anaconda3中。在这种情况下,解决方案是:
(base) $ conda config --add envs_dirs /Users/mah/anaconda/envs
(base) $ conda env list
# conda environments:
#
/Users/mah/anaconda
ase3 /Users/mah/anaconda/envs/ase3
base * /Users/mah/opt/anaconda3