小编Leg*_*sta的帖子

无法导入urllib.request和urllib.parse

我将不胜感激任何帮助.我使用Python 3.4.1并尝试导入urllib.request和urllib.parse.没有成功.我总是收到:

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 2218, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/x/Documents/PROGRAMING and MODELING/Phyton/find cure words/importowanie.py", line 1, in <module>
    import urllib.parse
  File "C:/Users/x/Documents/PROGRAMING and MODELING/Phyton/find cure words\urllib.py", line 1, in <module>
    import urllib.request
ImportError: No module named 'urllib.request'; 'urllib' is not a package
Run Code Online (Sandbox Code Playgroud)

我想问题是导入但我不知道如何绕过它

python import import-libraries

4
推荐指数
1
解决办法
7647
查看次数

标签 统计

import ×1

import-libraries ×1

python ×1