Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 69 forks source link

pip install iotedgedev errors in conda environment on Windows #608

Open mwilcox12014 opened 1 year ago

mwilcox12014 commented 1 year ago

Description

Environment: Running conda on Windows 11

(IOTEdgeModule) C:\ >conda --version conda 23.5.0

 (IOTEdgeModule) C:\ > python --version

Python 3.9.13

(IOTEdgeModule) C:\ >docker --version Docker version 20.10.17, build 100c701

Command: (IOTEdgeModule) C:\ > pip install iotedgedev ERROR:

pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. conda-repo-cli 1.0.41 requires requests_mock, which is not installed. pytoolconfig 1.2.5 requires packaging>=22.0, but you have packaging 21.3 which is incompatible. jupyter-core 5.3.0 requires pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy", but you have pywin32 227 which is incompatible. conda-repo-cli 1.0.41 requires clyent==1.2.1, but you have clyent 1.2.2 which is incompatible. conda-repo-cli 1.0.41 requires nbformat==5.4.0, but you have nbformat 5.7.0 which is incompatible. conda-repo-cli 1.0.41 requires PyYAML==6.0, but you have pyyaml 5.4.1 which is incompatible. conda-repo-cli 1.0.41 requires requests==2.28.1, but you have requests 2.25.1 which is incompatible. black 0.0 requires packaging>=22.0, but you have packaging 21.3 which is incompatible.

Expected behavior

No errors or abort install.

Actual behavior

pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. conda-repo-cli 1.0.41 requires requests_mock, which is not installed. pytoolconfig 1.2.5 requires packaging>=22.0, but you have packaging 21.3 which is incompatible. jupyter-core 5.3.0 requires pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy", but you have pywin32 227 which is incompatible. conda-repo-cli 1.0.41 requires clyent==1.2.1, but you have clyent 1.2.2 which is incompatible. conda-repo-cli 1.0.41 requires nbformat==5.4.0, but you have nbformat 5.7.0 which is incompatible. conda-repo-cli 1.0.41 requires PyYAML==6.0, but you have pyyaml 5.4.1 which is incompatible. conda-repo-cli 1.0.41 requires requests==2.28.1, but you have requests 2.25.1 which is incompatible. black 0.0 requires packaging>=22.0, but you have packaging 21.3 which is incompatible.

Steps to Reproduce

start a conda environment pip install iotedgedev

Environment

Environment: Running conda on Windows 11

(IOTEdgeModule) C:\ >conda --version conda 23.5.0

 (IOTEdgeModule) C:\ > python --version

Python 3.9.13

(IOTEdgeModule) C:\ >docker --version Docker version 20.10.17, build 100c701

(IOTEdgeModule) C:>pip --version pip 23.0.1 from C:\Users\SOD\anaconda3\envs\IOTEdgeModule\lib\site-packages\pip (python 3.9)

(IOTEdgeModule)>iotedgedev --version DLL load failed while importing win32file: The specified procedure could not be found. C:\Users\SOD\anaconda3\envs\IOTEdgeModule\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, iotedgedev, version 3.3.7