virtualenv: error: unrecognized arguments: –no-site-packages

I recently learned python and saw that I need to install the virtual environment virtualenv;
the version I installed locally is 20.4.2; the
tutorial version is 16.7.9;
use the command virtualenv --no-site-packages to report an error; the
error content: virtualenv: error: unrecognized arguments: --No-site-packages;

Reason: high and low virtualenv versions do not support –no-site-packages;

1. Get the virtualenv version to a version that supports --no-site-packages;
2. The high version of the virtualenv statement is virtualenv xxxx, and the environment can be created directly;

For example
1. virtualenv --no-site-packages testPython (this will report an error);
2. virtualenv testPython (success);

Guess you like

Origin blog.csdn.net/weixin_44887276/article/details/114360613