Python一般的な仮想化環境の作成:virtualenv:error:unrecognized arguments:--no-site-packages
1411 ワード
E:\work_space\person_work\laoling\RegistrationSystem>virtualenv -p python3 --no-site-packages venv3
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list]
[--clear] [--system-site-packages] [--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
以下のコマンドに変更すればよい
E:\work_space\person_work\laoling\RegistrationSystem>virtualenv -p python3 --system-site-packages venv3
created virtual environment CPython3.6.8.final.0-64 in 3583ms
creator CPython3Windows(dest=E:\work_space\person_work\laoling\RegistrationSystem\venv3, clear=False, global=True)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\hanxiaoshun\AppData\Local\pypa\virtualenv\seed-app-data\v1.0.1)
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
コマンドのヒント:
--system-site-packages