如何解决,dest virtualenv:错误:需要以下参数:dest错误? [英] How to solve, dest virtualenv: error: the following arguments are required: dest error?

查看:1831
本文介绍了如何解决,dest virtualenv:错误:需要以下参数:dest错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所述,我一直在犯该错误,而且我不知道如何解决它.

As the title says, I keep on having that error and I don't know how to solve it.

错误,如标题所示

virtualenv: error: the following arguments are required: dest

我输入的命令是

virtualenv

我正在MAC和python上运行它

I am running this on MAC and on python

推荐答案

当您提出问题时,请尝试说明您正在尝试做什么,而不仅是您得到的错误:)

When you ask the question, try to also explain what are you trying to do, and not only the error you get :)

如果我猜对了,那么您正在尝试创建一个新的虚拟环境. 执行virtualenv命令时,您需要为其指定一个名称(目标),以便它将在该文件夹下创建虚拟环境.

If I'm guessing correctly, you're trying to create a new virtual environment. When executing the virtualenv command you need to specify a name (dest) for it, so that it will create the virtual environment under that folder.

您的命令应如下所示:

virtualenv venv

其中venv是将要创建的文件夹的名称.

where venv is the name of the folder that will get created.

在此处查看更多信息: https://programwithus.com/learn-to-code/Pip-and-virtualenv-on-Mac/

See some more information here: https://programwithus.com/learn-to-code/Pip-and-virtualenv-on-Mac/

这篇关于如何解决,dest virtualenv:错误:需要以下参数:dest错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆