环境:certbot使用
报错:
... Creating virtual environment... usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython2-posix}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list] [--clear] [--system-site-packages] [--symlinks | --copies] [--download | --no-download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel] [--symlink-app-data] [--prompt prompt] [-h] dest virtualenv: error: unrecognized arguments: --no-site-packages ...
参考:https://blog.csdn.net/ustbbsy/article/details/104546618
没有这个参数 –no-site-packages ,是 virtualenv 版本问题。升级:
pip3 install --upgrade virtualenv==16.7.9