gpt4 book ai didi

environment-variables - 源激活不执行任何操作

转载 作者:行者123 更新时间:2023-12-04 08:32:38 26 4
gpt4 key购买 nike

当我尝试激活我的环境(以前已经起作用)时,什么也没发生。解决此问题的唯一方法是重新安装所有内容?我曾尝试更改环境变量等,但没有任何效果。

image

最佳答案

conda info --envs可以提供更多线索

Environments are installed by default into the envs directory in your conda directory.


注意: 在Windows中,最好在激活另一个之前先停用一个环境。
如果源激活未正确设置环境变量,则 you can set them manually
另请参阅 troubleshooting:

Reactivate the environment or run hash -r (in bash) or rehash (in zsh)

When you run source activate, conda automatically runs hash -r in bash and rehash in zsh to clear the hashed commands, so conda will find things in the new path on the PATH.

This is a relatively rare problem, since this will only happen if you activate an environment or use the root environment, run a command from somewhere else, then conda install a program and try to run the program again without running source activate or source deactivate.

The command type command_name will always tell you exactly what is being run (this is better than which command_name, which ignores hashed commands and searches the PATH directly), and hash -r (in bash) or rehash (in zsh) will reset the hash, or you can run source activate.



最后,请注意 issues with Cygwin or MsysGit bash:
  • issue 3352:Cygwin激活无法正确工作
  • issue 1429:Windows Msysgit Bash shell无法运行conda的activate.bat
  • 关于environment-variables - 源激活不执行任何操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41946287/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com