Azure-Samples / Azure-Samples/cognitive-services-quickstart-code
URGENT: the dreaded "ModuleNotFound: Azure" error is being thrown when executing the from-import lines of code !!!
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 389
- Fork
- 556
- Merge trung bình
- 3 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
### Minimal steps to reproduce
>
START VSCode;
INSTALL Python extensions (which will INCLUDE everything to run Jupyter Notebooks in a project) in VSCode;
DEFINE a python virtual environment for your project;
INSTALL Azure CognitiveServices "custom vision" package into that virtual environment;
(pip install azure-cognitiveservices-vision-customvision)
COPY the following line into a notebook cell:
from azure.cognitiveservices.vision.customvision.training import CustomVisionTrainingClient
EXECUTE the cell
=> RESULT: VSCode will throw the following exception:
ModuleNotFoundError: No module named 'azure'
### Any log messages given by the failure
>ModuleNotFoundError: No module named 'azure'
### Expected/desired behavior
> the desired class is SUCCESSFULLY imported into the notebook
### OS and Version?
> Win10pro (all auto-patching CURRENT)
### Mention any other details that might be useful
> COPIED & PASTED code VERBATUM directly from the following "QuickStart" web page at docs.microsoft.com:
https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/quickstarts/image-classification?tabs=visual-studio&pivots=programming-language-python
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện việc import trong notebook VSCode bằng môi trường ảo Python đã nêu và package azure-cognitiveservices-vision-customvision. Kiểm tra môi trường được chọn trong notebook có trùng với môi trường đã cài đặt package hay không; được xem là hoàn thành khi import CustomVisionTrainingClient thành công mà không có ModuleNotFoundError. Không có tệp repository hoặc test nào được nêu tên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, jupyter-notebook, python, vscode
- Lĩnh vực
- cloud
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100