I type in virtualenv -p $(which python3.8) VirtualEnvironmentName
, but I get "IOError: [Errno 2] No such file or directory." I included $(which python3.8) so that I would have a virtual environment with Python 3.8. I want to use virtualenv to create my virtual environments for Python, but I always get "IOError: [Errno 2] No such file or directory."
我只需要知道如何使用virtualenv来创建虚拟环境,而不会出现“ IOError:[Errno 2]没有这样的文件或目录”。
提前致谢。
尝试在终端中使用wich命令首先找到路径,例如,在我运行的机器中:
返回以下内容的内容:/ usr / local / bin / python3
之后,您只需要使用此路径即可使用--python选项创建虚拟环境: