简体   繁体   English

读取 azure 容器和 Python 中的 blob 时出现问题

[英]problem on read azure container and blob in Python

I'm learning Python and I wanna print the list of all my blob storage in Azure.我正在学习 Python,我想打印 Azure 中所有 Blob 存储的列表。 Find the sample code from here .这里找到示例代码。

I have done this step:我已经完成了这一步:

  1. set connection string:设置连接字符串: 在此处输入图像描述
  2. After the run I received this error运行后我收到此错误在此处输入图像描述

Note: Like my experience, your problem solved after the restart.注意:按照我的经验,重启后你的问题就解决了。

Your code is correct.你的代码是正确的。 Just restart your VS Code and run it again.只需重新启动您的 VS Code 并再次运行它。 It will work.它会起作用的。 You error cause by setx command.你的错误是由setx命令引起的。 It can't work in the current command window.它不能在当前命令 window 中工作。 You can refer to Why is setx path not working?您可以参考为什么 setx path 不起作用?

On a local system, variables created or modified by this tool will be available in future command windows but not in the current CMD.exe command window.在本地系统上,此工具创建或修改的变量将在未来的命令 windows 中可用,但在当前的 CMD.exe 命令 window 中不可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM