Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

pip installing azure-cli takes a REALLY long time due to pip looking at multiple versions to determine which version is compatible with other requirements. #19682

Open aponte411 opened 3 years ago

aponte411 commented 3 years ago

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug pip install takes a REALLY long time.

To Reproduce pip install azure-cli

Expected behavior It shouldn't take more than a few minutes to install a pip package.

Environment summary OS: Ubuntu 20.04 on WSL Python: 3.7. pip: 20.0.

Additional context Collecting azure-cli Using cached azure_cli-2.28.1-py3-none-any.whl (2.2 MB) Collecting azure-appconfiguration~=1.1.1 Using cached azure_appconfiguration-1.1.1-py2.py3-none-any.whl (37 kB) Collecting azure-mgmt-trafficmanager~=0.51.0 Using cached azure_mgmt_trafficmanager-0.51.0-py2.py3-none-any.whl (58 kB) Collecting semver==2.13.0 Using cached semver-2.13.0-py2.py3-none-any.whl (12 kB) Collecting azure-mgmt-resource==19.0.0 Using cached azure_mgmt_resource-19.0.0-py2.py3-none-any.whl (2.2 MB) Collecting azure-mgmt-synapse~=2.0.0 Using cached azure_mgmt_synapse-2.0.0-py2.py3-none-any.whl (442 kB) Requirement already satisfied: azure-mgmt-containerregistry==8.1.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli) (8.1.0) Collecting azure-mgmt-imagebuilder~=0.4.0 Using cached azure_mgmt_imagebuilder-0.4.0-py2.py3-none-any.whl (29 kB) Collecting azure-mgmt-policyinsights~=1.0.0 Using cached azure_mgmt_policyinsights-1.0.0-py2.py3-none-any.whl (78 kB) Collecting azure-mgmt-netapp~=4.0.0 Using cached azure_mgmt_netapp-4.0.0-py2.py3-none-any.whl (118 kB) Requirement already satisfied: azure-mgmt-authorization~=0.61.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli) (0.61.0) Collecting websocket-client~=0.56.0 Using cached websocket_client-0.56.0-py2.py3-none-any.whl (200 kB) Collecting azure-loganalytics~=0.1.0 Using cached azure_loganalytics-0.1.0-py2.py3-none-any.whl (16 kB) Collecting azure-mgmt-billing==6.0.0 Using cached azure_mgmt_billing-6.0.0-py2.py3-none-any.whl (166 kB) Collecting azure-mgmt-iothubprovisioningservices~=0.3.0 Using cached azure_mgmt_iothubprovisioningservices-0.3.0-py2.py3-none-any.whl (32 kB) Collecting azure-synapse-spark~=0.2.0 Using cached azure_synapse_spark-0.2.0-py2.py3-none-any.whl (29 kB) Collecting azure-mgmt-cognitiveservices~=12.0.0 Using cached azure_mgmt_cognitiveservices-12.0.0-py2.py3-none-any.whl (78 kB) Collecting azure-mgmt-sql~=3.0.1 Using cached azure_mgmt_sql-3.0.1-py2.py3-none-any.whl (912 kB) Collecting azure-mgmt-extendedlocation~=1.0.0b2 Using cached azure_mgmt_extendedlocation-1.0.0b2-py2.py3-none-any.whl (37 kB) Collecting azure-cli-core==2.28.1 Using cached azure_cli_core-2.28.1-py3-none-any.whl (180 kB) Collecting azure-cosmos>=3.0.2,~=3.0 Using cached azure_cosmos-3.2.0-py2.py3-none-any.whl (106 kB) Collecting scp~=0.13.2 Using cached scp-0.13.6-py2.py3-none-any.whl (8.2 kB) Collecting azure-mgmt-eventgrid==9.0.0 Using cached azure_mgmt_eventgrid-9.0.0-py2.py3-none-any.whl (178 kB) Collecting azure-mgmt-compute~=22.1.0 Using cached azure_mgmt_compute-22.1.0-py2.py3-none-any.whl (4.3 MB) Collecting azure-mgmt-managementgroups~=0.1 Using cached azure_mgmt_managementgroups-0.2.0-py2.py3-none-any.whl (59 kB) Collecting azure-mgmt-loganalytics~=11.0.0 Using cached azure_mgmt_loganalytics-11.0.0-py2.py3-none-any.whl (145 kB) Collecting azure-mgmt-deploymentmanager~=0.2.0 Using cached azure_mgmt_deploymentmanager-0.2.0-py2.py3-none-any.whl (41 kB) Collecting azure-mgmt-batch~=16.0.0 Using cached azure_mgmt_batch-16.0.0-py2.py3-none-any.whl (139 kB) Collecting azure-mgmt-servicebus~=6.0.0 Using cached azure_mgmt_servicebus-6.0.0-py2.py3-none-any.whl (120 kB) Collecting azure-mgmt-redis~=13.0.0 Using cached azure_mgmt_redis-13.0.0-py2.py3-none-any.whl (75 kB) Collecting azure-synapse-accesscontrol~=0.5.0 Using cached azure_synapse_accesscontrol-0.5.0-py2.py3-none-any.whl (30 kB) Collecting PyGithub~=1.38 Using cached PyGithub-1.55-py3-none-any.whl (291 kB) Collecting azure-mgmt-network~=19.0.0 Using cached azure_mgmt_network-19.0.0-py2.py3-none-any.whl (20.9 MB) Collecting azure-mgmt-media~=7.0 Using cached azure_mgmt_media-7.0.0-py2.py3-none-any.whl (219 kB) Collecting jsondiff==1.2.0 Using cached jsondiff-1.2.0.tar.gz (8.0 kB) Collecting antlr4-python3-runtime~=4.7.2 Using cached antlr4-python3-runtime-4.7.2.tar.gz (112 kB) Collecting azure-mgmt-cosmosdb~=6.4.0 Using cached azure_mgmt_cosmosdb-6.4.0-py2.py3-none-any.whl (290 kB) Collecting azure-mgmt-recoveryservicesbackup~=0.14.0 Using cached azure_mgmt_recoveryservicesbackup-0.14.0-py2.py3-none-any.whl (250 kB) Collecting azure-mgmt-appconfiguration~=2.0.0 Using cached azure_mgmt_appconfiguration-2.0.0-py2.py3-none-any.whl (61 kB) Collecting azure-mgmt-apimanagement~=0.2.0 Using cached azure_mgmt_apimanagement-0.2.0-py2.py3-none-any.whl (275 kB) Collecting azure-datalake-store~=0.0.49 Using cached azure_datalake_store-0.0.52-py2.py3-none-any.whl (61 kB) Collecting azure-mgmt-containerservice~=16.1.0 Using cached azure_mgmt_containerservice-16.1.0-py2.py3-none-any.whl (1.7 MB) Collecting azure-mgmt-datalake-store~=0.5.0 Using cached azure_mgmt_datalake_store-0.5.0-py2.py3-none-any.whl (88 kB) Collecting azure-mgmt-rdbms~=9.1.0b1 Using cached azure_mgmt_rdbms-9.1.0-py2.py3-none-any.whl (645 kB) Collecting azure-mgmt-signalr~=1.0.0b2 Using cached azure_mgmt_signalr-1.0.0b2-py2.py3-none-any.whl (71 kB) Collecting azure-batch~=11.0.0 Using cached azure_batch-11.0.0-py2.py3-none-any.whl (228 kB) Collecting azure-storage-common~=1.4 Using cached azure_storage_common-1.4.2-py2.py3-none-any.whl (47 kB) Collecting packaging~=20.9 Using cached packaging-20.9-py2.py3-none-any.whl (40 kB) Collecting azure-keyvault-administration==4.0.0b3 Using cached azure_keyvault_administration-4.0.0b3-py2.py3-none-any.whl (77 kB) Collecting xmltodict~=0.12 Using cached xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB) Collecting azure-mgmt-redhatopenshift==1.0.0 Using cached azure_mgmt_redhatopenshift-1.0.0-py2.py3-none-any.whl (41 kB) Collecting azure-mgmt-dns~=8.0.0 Using cached azure_mgmt_dns-8.0.0-py2.py3-none-any.whl (118 kB) Collecting azure-mgmt-marketplaceordering==1.1.0 Using cached azure_mgmt_marketplaceordering-1.1.0-py2.py3-none-any.whl (26 kB) Collecting azure-mgmt-eventhub~=4.1.0 Using cached azure_mgmt_eventhub-4.1.0-py2.py3-none-any.whl (116 kB) Requirement already satisfied: distro in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli) (1.5.0) Collecting PyNaCl~=1.4.0 Using cached PyNaCl-1.4.0-cp35-abi3-manylinux1_x86_64.whl (961 kB) Collecting azure-multiapi-storage~=0.6.2 Using cached azure_multiapi_storage-0.6.2-py2.py3-none-any.whl (4.3 MB) Collecting azure-graphrbac~=0.60.0 Using cached azure_graphrbac-0.60.0-py2.py3-none-any.whl (139 kB) Collecting azure-mgmt-devtestlabs~=4.0 Using cached azure_mgmt_devtestlabs-4.0.0-py2.py3-none-any.whl (137 kB) Collecting azure-mgmt-consumption~=2.0 Using cached azure_mgmt_consumption-2.0.0-py2.py3-none-any.whl (46 kB) Collecting azure-mgmt-batchai~=7.0.0b1 Using cached azure_mgmt_batchai-7.0.0b1-py2.py3-none-any.whl (99 kB) Collecting azure-mgmt-servicefabric~=1.0.0 Using cached azure_mgmt_servicefabric-1.0.0-py2.py3-none-any.whl (139 kB) Requirement already satisfied: azure-identity in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli) (1.4.1) Collecting javaproperties==0.5.1 Using cached javaproperties-0.5.1-py2.py3-none-any.whl (19 kB) Collecting azure-mgmt-hdinsight~=8.0.0 Using cached azure_mgmt_hdinsight-8.0.0-py2.py3-none-any.whl (109 kB) Collecting azure-mgmt-servicefabricmanagedclusters~=1.0.0 Using cached azure_mgmt_servicefabricmanagedclusters-1.0.0-py2.py3-none-any.whl (112 kB) Collecting pytz==2019.1 Using cached pytz-2019.1-py2.py3-none-any.whl (510 kB) Collecting azure-mgmt-reservations==0.6.0 Using cached azure_mgmt_reservations-0.6.0-py2.py3-none-any.whl (33 kB) Collecting azure-mgmt-search~=8.0 Using cached azure_mgmt_search-8.0.0-py2.py3-none-any.whl (71 kB) Collecting azure-mgmt-maps~=2.0.0 Using cached azure_mgmt_maps-2.0.0-py2.py3-none-any.whl (38 kB) Collecting azure-mgmt-monitor~=2.0.0 Using cached azure_mgmt_monitor-2.0.0-py2.py3-none-any.whl (607 kB) Collecting azure-mgmt-iothub==2.1.0 Using cached azure_mgmt_iothub-2.1.0-py2.py3-none-any.whl (834 kB) Collecting azure-mgmt-relay~=0.1.0 Using cached azure_mgmt_relay-0.1.0-py2.py3-none-any.whl (36 kB) Collecting azure-mgmt-keyvault==9.1.0 Using cached azure_mgmt_keyvault-9.1.0-py2.py3-none-any.whl (314 kB) Collecting azure-mgmt-advisor==9.0.0 Using cached azure_mgmt_advisor-9.0.0-py2.py3-none-any.whl (46 kB) Collecting azure-mgmt-containerinstance~=8.0.0 Using cached azure_mgmt_containerinstance-8.0.0-py2.py3-none-any.whl (57 kB) Collecting azure-synapse-managedprivateendpoints~=0.3.0 Using cached azure_synapse_managedprivateendpoints-0.3.0-py2.py3-none-any.whl (19 kB) Collecting azure-mgmt-managedservices~=1.0 Using cached azure_mgmt_managedservices-1.0.0-py2.py3-none-any.whl (38 kB) Collecting azure-mgmt-iotcentral~=9.0.0b1 Using cached azure_mgmt_iotcentral-9.0.0b1-py2.py3-none-any.whl (30 kB) Collecting azure-mgmt-msi~=0.2 Using cached azure_mgmt_msi-0.2.0-py2.py3-none-any.whl (17 kB) Collecting azure-mgmt-security~=1.0.0 Using cached azure_mgmt_security-1.0.0-py2.py3-none-any.whl (391 kB) Collecting azure-mgmt-cdn==11.0.0 Using cached azure_mgmt_cdn-11.0.0-py2.py3-none-any.whl (252 kB) Collecting azure-mgmt-kusto~=0.3.0 Using cached azure_mgmt_kusto-0.3.0-py2.py3-none-any.whl (73 kB) Collecting azure-functions-devops-build~=0.0.22 Using cached azure_functions_devops_build-0.0.22-py3-none-any.whl (47 kB) Collecting sshtunnel~=0.1.4 Using cached sshtunnel-0.1.5-py2.py3-none-any.whl (23 kB) Collecting azure-mgmt-applicationinsights~=1.0.0 Using cached azure_mgmt_applicationinsights-1.0.0-py2.py3-none-any.whl (302 kB) Collecting azure-mgmt-databoxedge~=1.0.0 Using cached azure_mgmt_databoxedge-1.0.0-py2.py3-none-any.whl (1.3 MB) Collecting fabric~=2.4 Using cached fabric-2.6.0-py2.py3-none-any.whl (53 kB) Collecting azure-mgmt-storage~=18.0.0 Using cached azure_mgmt_storage-18.0.0-py2.py3-none-any.whl (1.6 MB) Collecting azure-keyvault~=1.1.0 Using cached azure_keyvault-1.1.0-py2.py3-none-any.whl (352 kB) Collecting azure-mgmt-datalake-analytics~=0.2.1 Using cached azure_mgmt_datalake_analytics-0.2.1-py2.py3-none-any.whl (146 kB) Collecting azure-mgmt-privatedns~=1.0.0 Using cached azure_mgmt_privatedns-1.0.0-py2.py3-none-any.whl (43 kB) Collecting azure-mgmt-recoveryservices~=2.0.0 Using cached azure_mgmt_recoveryservices-2.0.0-py2.py3-none-any.whl (79 kB) Collecting azure-mgmt-botservice~=0.3.0 Using cached azure_mgmt_botservice-0.3.0-py2.py3-none-any.whl (37 kB) Collecting azure-synapse-artifacts~=0.6.0 Using cached azure_synapse_artifacts-0.6.0-py2.py3-none-any.whl (471 kB) Collecting azure-mgmt-sqlvirtualmachine~=1.0.0b1 Using cached azure_mgmt_sqlvirtualmachine-1.0.0b1-py2.py3-none-any.whl (55 kB) Collecting azure-mgmt-web~=2.0.0 Using cached azure_mgmt_web-2.0.0-py2.py3-none-any.whl (2.3 MB) Collecting azure-mgmt-datamigration~=9.0.0 Using cached azure_mgmt_datamigration-9.0.0-py2.py3-none-any.whl (167 kB) Collecting paramiko<3.0.0,>=2.0.8 Using cached paramiko-2.7.2-py2.py3-none-any.whl (206 kB) Collecting knack~=0.8.2 Using cached knack-0.8.2-py3-none-any.whl (59 kB) Collecting humanfriendly<10.0,>=4.7 Using cached humanfriendly-9.2-py2.py3-none-any.whl (86 kB) Collecting azure-cli-telemetry==1.0.6. Using cached azure_cli_telemetry-1.0.6-py3-none-any.whl (10 kB) Requirement already satisfied: azure-common~=1.1 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-core==2.28.1->azure-cli) (1.1.27) Requirement already satisfied: jmespath in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-core==2.28.1->azure-cli) (0.10.0) Collecting urllib3[secure]>=1.26.5 Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB) Collecting pkginfo>=1.5.0.1 Using cached pkginfo-1.7.1-py2.py3-none-any.whl (25 kB) Requirement already satisfied: six~=1.12 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-core==2.28.1->azure-cli) (1.16.0) Collecting azure-mgmt-core<1.3.0,>=1.2.0 Using cached azure_mgmt_core-1.2.2-py2.py3-none-any.whl (21 kB) Collecting psutil~=5.8 Using cached psutil-5.8.0-cp37-cp37m-manylinux2010_x86_64.whl (296 kB) Requirement already satisfied: PyJWT>=2.1.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-core==2.28.1->azure-cli) (2.1.0) Requirement already satisfied: pyopenssl>=17.1.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-core==2.28.1->azure-cli) (20.0.1) Requirement already satisfied: adal~=1.2.7 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-core==2.28.1->azure-cli) (1.2.7) Collecting cryptography<3.4,>=3.2 Using cached cryptography-3.3.2-cp36-abi3-manylinux2010_x86_64.whl (2.6 MB) Collecting requests[socks]~=2.25.1 Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB) Collecting argcomplete~=1.8 Using cached argcomplete-1.12.3-py2.py3-none-any.whl (38 kB) Requirement already satisfied: msal<2.0.0,>=1.10.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-core==2.28.1->azure-cli) (1.13.0) Requirement already satisfied: applicationinsights<0.12,>=0.11.1 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-telemetry==1.0.6.->azure-cli-core==2.28.1->azure-cli) (0.11.10) Requirement already satisfied: portalocker~=1.2 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-cli-telemetry==1.0.6.*->azure-cli-core==2.28.1->azure-cli) (1.7.1) Requirement already satisfied: azure-core<2.0.0,>=1.7.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-keyvault-administration==4.0.0b3->azure-cli) (1.16.0) Requirement already satisfied: msrest>=0.6.21 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-keyvault-administration==4.0.0b3->azure-cli) (0.6.21) Requirement already satisfied: msrestazure<2.0.0,>=0.4.32 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-mgmt-reservations==0.6.0->azure-cli) (0.6.4) Requirement already satisfied: python-dateutil<3,>=2.1.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from adal~=1.2.7->azure-cli-core==2.28.1->azure-cli) (2.8.2) Requirement already satisfied: requests<3,>=2.0.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from adal~=1.2.7->azure-cli-core==2.28.1->azure-cli) (2.23.0) Requirement already satisfied: importlib-metadata<5,>=0.23 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from argcomplete~=1.8->azure-cli-core==2.28.1->azure-cli) (4.6.1) Requirement already satisfied: cffi in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-datalake-store~=0.0.49->azure-cli) (1.14.6) Collecting vsts Using cached vsts-0.1.25-py3-none-any.whl (2.3 MB) Requirement already satisfied: jinja2 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from azure-functions-devops-build~=0.0.22->azure-cli) (3.0.1) Collecting azure-nspkg>=2.0.0 Using cached azure_nspkg-3.0.2-py3-none-any.whl (1.5 kB) Collecting azure-mgmt-nspkg>=2.0.0 Using cached azure_mgmt_nspkg-3.0.2-py3-none-any.whl (1.6 kB) Collecting azure-mgmt-datalake-nspkg>=2.0.0 Using cached azure_mgmt_datalake_nspkg-3.0.1-py3-none-any.whl (1.7 kB) Requirement already satisfied: pycparser in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from cffi->azure-datalake-store~=0.0.49->azure-cli) (2.20) Collecting invoke<2.0,>=1.3 Using cached invoke-1.6.0-py3-none-any.whl (212 kB) Collecting pathlib2 Using cached pathlib2-2.3.6-py2.py3-none-any.whl (17 kB) Requirement already satisfied: zipp>=0.5 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from importlib-metadata<5,>=0.23->argcomplete~=1.8->azure-cli-core==2.28.1->azure-cli) (3.5.0) Requirement already satisfied: typing-extensions>=3.6.4 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from importlib-metadata<5,>=0.23->argcomplete~=1.8->azure-cli-core==2.28.1->azure-cli) (3.10.0.0) Collecting tabulate Using cached tabulate-0.8.9-py3-none-any.whl (25 kB) Collecting pyyaml Using cached PyYAML-5.4.1-cp37-cp37m-manylinux1_x86_64.whl (636 kB) Requirement already satisfied: pygments in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from knack~=0.8.2->azure-cli-core==2.28.1->azure-cli) (2.9.0) Collecting colorama Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Requirement already satisfied: certifi>=2017.4.17 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from msrest>=0.6.21->azure-keyvault-administration==4.0.0b3->azure-cli) (2021.5.30) Requirement already satisfied: requests-oauthlib>=0.5.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from msrest>=0.6.21->azure-keyvault-administration==4.0.0b3->azure-cli) (1.3.0) Requirement already satisfied: isodate>=0.6.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from msrest>=0.6.21->azure-keyvault-administration==4.0.0b3->azure-cli) (0.6.0) Requirement already satisfied: pyparsing>=2.0.2 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from packaging~=20.9->azure-cli) (2.4.7) Collecting bcrypt>=3.1.3 Using cached bcrypt-3.2.0-cp36-abi3-manylinux2010_x86_64.whl (63 kB) Collecting deprecated Using cached Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB) Requirement already satisfied: idna<3,>=2.5 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from requests<3,>=2.0.0->adal~=1.2.7->azure-cli-core==2.28.1->azure-cli) (2.10) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from requests<3,>=2.0.0->adal~=1.2.7->azure-cli-core==2.28.1->azure-cli) (1.25.11) Requirement already satisfied: chardet<4,>=3.0.2 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from requests<3,>=2.0.0->adal~=1.2.7->azure-cli-core==2.28.1->azure-cli) (3.0.4) Requirement already satisfied: oauthlib>=3.0.0 in /home/bambam/.pyenv/versions/3.7.5/envs/fwr-cicd/lib/python3.7/site-packages (from requests-oauthlib>=0.5.0->msrest>=0.6.21->azure-keyvault-administration==4.0.0b3->azure-cli) (3.1.1) Collecting PySocks!=1.5.7,>=1.5.6 Using cached PySocks-1.7.1-py3-none-any.whl (16 kB) Collecting urllib3[secure]>=1.26.5 Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB) Using cached urllib3-1.26.5-py2.py3-none-any.whl (138 kB) INFO: pip is looking at multiple versions of urllib3 to determine which version is compatible with other requirements. This could take a while. Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 Using cached urllib3-1.25.11-py2.py3-none-any.whl (127 kB) Using cached urllib3-1.25.10-py2.py3-none-any.whl (127 kB) Using cached urllib3-1.25.9-py2.py3-none-any.whl (126 kB) Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB) Using cached urllib3-1.25.7-py2.py3-none-any.whl (125 kB) Using cached urllib3-1.25.6-py2.py3-none-any.whl (125 kB) Using cached urllib3-1.25.5-py2.py3-none-any.whl (125 kB) INFO: pip is looking at multiple versions of urllib3 to determine which version is compatible with other requirements. This could take a while. Using cached urllib3-1.25.4-py2.py3-none-any.whl (125 kB) Using cached urllib3-1.25.3-py2.py3-none-any.whl (150 kB) Using cached urllib3-1.25.2-py2.py3-none-any.whl (150 kB) Using cached urllib3-1.24.3-py2.py3-none-any.whl (118 kB) Using cached urllib3-1.24.2-py2.py3-none-any.whl (131 kB) INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking Using cached urllib3-1.24.1-py2.py3-none-any.whl (118 kB) Using cached urllib3-1.24-py2.py3-none-any.whl (117 kB) Using cached urllib3-1.23-py2.py3-none-any.whl (133 kB) Using cached urllib3-1.22-py2.py3-none-any.whl (132 kB) Using cached urllib3-1.21.1-py2.py3-none-any.whl (131 kB) INFO: pip is looking at multiple versions of typing-extensions to determine which version is compatible with other requirements. This could take a while. Collecting typing-extensions>=3.6.4 Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB) Using cached typing_extensions-3.10.0.1-py3-none-any.whl (26 kB) Using cached typing_extensions-3.10.0.0-py3-none-any.whl (26 kB) Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB) Using cached typing_extensions-3.7.4.2-py3-none-any.whl (22 kB) Using cached typing_extensions-3.7.4.1-py3-none-any.whl (20 kB) Using cached typing_extensions-3.7.4-py3-none-any.whl (20 kB) INFO: pip is looking at multiple versions of typing-extensions to determine which version is compatible with other requirements. This could take a while. Using cached typing_extensions-3.7.2-py3-none-any.whl (16 kB) Using cached typing_extensions-3.6.6-py3-none-any.whl (16 kB) Using cached typing_extensions-3.6.5-py3-none-any.whl (11 kB) INFO: pip is looking at multiple versions of sshtunnel to determine which version is compatible with other requirements. This could take a while. Collecting sshtunnel~=0.1.4 Using cached sshtunnel-0.1.4.tar.gz (48 kB) INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking INFO: pip is looking at multiple versions of six to determine which version is compatible with other requirements. This could take a while. Collecting six~=1.12 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Using cached six-1.15.0-py2.py3-none-any.whl (10 kB) Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)

yonzhan commented 3 years ago

@jiasli for awareness

jiasli commented 3 years ago

I am not able to repro with a fresh python docker image:

> docker run -it --rm python pip install azure-cli

urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 is from old versions of requests.

A similar issue #18499 is solved by https://github.com/Azure/azure-cli/pull/18518.

Could you share the result of pip list and update the version of requests first?

pip install requests[socks]~=2.25.1