更新时间:2023-11-08 08:45:46
尝试使用终端导航到包含使用更改目录 (cd) 命令的虚拟环境的文件夹.到达那里后,尝试输入:
Try using the terminal to navigate to the folder that contains your virtual environment using the change directory (cd) command. Once there, try typing:
source ./venv/Scripts/activate
另外,尝试打开 venv 文件夹并确保您的激活文件位于Scripts"文件夹而不是bin"文件夹中.当我创建一个虚拟环境时,我使用:
Also, try opening the venv folder and make sure your activate file is in the 'Scripts' folder and not the 'bin' folder. When I create a virtual environment, I use:
source ./venv/bin/activate