[英]pythonanywhere bash No such file or directory?
Good morning.早上好。
Virtual environment cannot be executed in the current project.当前项目中无法执行虚拟环境。
The virtual environment folder looks normal.虚拟环境文件夹看起来正常。
However, it cannot be executed with the source command.但是,它不能用 source 命令执行。
In my case, can I just reinstall the virtual environment?就我而言,我可以重新安装虚拟环境吗?
In your screenshot, you have used cd
to move into the directory ~/venv/bin
, and then you're trying to run the command source venv/bin/activate
.在您的屏幕截图中,您使用cd
移动到目录~/venv/bin
,然后您尝试运行命令source venv/bin/activate
。 That is failing because the path of the script in the command you are running assumes that you are in the directory ~
.这是失败的,因为您正在运行的命令中的脚本路径假定您在目录中~
。
If you have already used cd
to navigate to the directory containing the file activate
, you should just tell bash to source the file of that name in the current working directory, with the command source./activate
.如果您已经使用cd
导航到包含文件activate
的目录,您应该告诉 bash 在当前工作目录中获取该名称的文件,使用命令source./activate
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.