You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Anaconda环境下无法找到azure.mgmt.datafactory模块问题求助

Cannot import azure.mgmt.datafactory despite multiple installation attempts (Windows 10, Anaconda)

I'm trying to follow Microsoft's Python tutorial for Azure Data Factory, but I've hit a wall getting the required packages set up. Every time I run:

from azure.mgmt.datafactory import DataFactoryManagementClient

I get the error:

No module named 'azure.mgmt.datafactory'

Here's my setup and what I've tried so far:

  • Environment: Windows 10, using Anaconda (primarily a Python 3.5 environment, also tested with a regular Python 3.6 environment)
  • First, I installed packages from Anaconda's repositories:
    • Installed azure from the Anaconda channel
    • Installed azure-mgmt-resource from the clinicalgraphics channel
    • Note: from azure.mgmt.resource import ResourceManagementClient works perfectly after this installation
  • Next, I tried manual installation from the Azure SDK for Python repo:
    git clone git://github.com/Azure/azure-sdk-for-python.git
    cd azure-sdk-for-python
    python setup.py install
    
    This didn't resolve the issue in either the Python 3.5 Anaconda environment or the regular Python 3.6 environment.

After getting initial suggestions, I tried using pip in PowerShell:

pip install azure-mgmt-resource
pip install azure-mgmt-datafactory
pip install azure-mgmt

But this led to a new error:

ModuleNotFoundError: No module named 'azure.mgmt'

Uninstalling all three packages and installing azure-mgmt first didn't fix this either. I also realize I don't know how to uninstall the packages I installed via python setup.py install, and I suspect this might be causing conflicts that are contributing to the problem.

Has anyone run into this kind of package conflict or import error with Azure's Python SDK on Windows/Anaconda? Any advice on resolving this, or properly removing the manually installed packages?

内容的提问来源于stack exchange,提问作者Eulenfuchswiesel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 06:23:20