简体   繁体   English

无法从源解析导入“six.moves.urllib.parse”

[英]Import "six.moves.urllib.parse" could not be resolved from source

I successfully installed "six" at the command prompt.我在命令提示符下成功安装了“六”。 Why does my "python" display "Import "six.moves.urllib.parse" could not be resolved from source" and there is a yellow wavy line.为什么我的“python”显示“导入“six.moves.urllib.parse”无法从源代码解析,并且有黄色波浪线。

Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six
Successfully installed six-1.16.0

在此处输入图片说明

use

from urllib.parse import urlencode

For python3对于python3

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

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