Anaconda环境下无法找到azure.mgmt.datafactory模块问题求助
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
azurefrom the Anaconda channel - Installed
azure-mgmt-resourcefrom the clinicalgraphics channel - Note:
from azure.mgmt.resource import ResourceManagementClientworks perfectly after this installation
- Installed
- Next, I tried manual installation from the Azure SDK for Python repo:
This didn't resolve the issue in either the Python 3.5 Anaconda environment or the regular Python 3.6 environment.git clone git://github.com/Azure/azure-sdk-for-python.git cd azure-sdk-for-python python setup.py install
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

