How to solve, dest virtualenv: error: the followin

2020-05-10 04:49发布

问题:

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

The Error, as the title says is

virtualenv: error: the following arguments are required: dest

the command which I entered was

virtualenv

I am running this on MAC and on python

回答1:

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

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.

Your command should look like this:

virtualenv venv

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

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



回答2:

path/virtualenv pythonfinance

this will create a virtual environment in the folder pythonfinance.