Я пытаюсь использовать pip для установки только тех импортов, которые я использую с их зависимостями в python venv, это для загрузки zip в AWS lambda.
, но когда я делаю установить его скачать мне огромную структуру каталогов
Я не уверен, что мне нужно все это.
мой вопрос, как я могу загрузить только импорт, который я использую из пакета
для пример: я использую:
from exchangelib import DELEGATE, Account, Credentials, Configuration
и когда я делаю (в изолированном python env):
pip install exchangelib
он устанавливает меня:
Pygments-2.6.1.dist-info
__pycache__
_cffi_backend.cp36-win32.pyd
cached_property-1.5.1.dist-info
cached_property.py
certifi
certifi-2019.11.28.dist-info
cffi
cffi-1.14.0.dist-info
chardet
chardet-3.0.4.dist-info
cryptography
cryptography-2.8.dist-info
dateutil
defusedxml
defusedxml-0.6.0.dist-info
dns
dnspython-1.16.0.dist-info
easy_install.py
idna
idna-2.9.dist-info
isodate
isodate-0.6.0.dist-info
lxml
lxml-4.5.0.dist-info
ntlm_auth
ntlm_auth-1.4.0.dist-info
oauthlib
oauthlib-3.1.0.dist-info
pip
pip-18.1.dist-info
pkg_resources
pycparser
pycparser-2.20.dist-info
pygments
python_dateutil-2.8.1.dist-info
pytz
pytz-2019.3.dist-info
requests
requests-2.23.0.dist-info
requests_ntlm
requests_ntlm-1.1.0.dist-info
requests_oauthlib
requests_oauthlib-1.3.0.dist-info
setuptools
setuptools-40.6.2.dist-info
six-1.14.0.dist-info
six.py
tzlocal
tzlocal-2.0.0.dist-info
urllib3
urllib3-1.25.8.dist-info