WFU

[ 精選文章 ]

自行車 入門 Escape 3 , Snap 21 , Revel

最近周末想運動 , 平日想通勤 , 想買台自行車 , 把自己找的資料跟大家分享 , 如果你是玩家級的 就不用看了 這是給跟我一樣的新新新手 參考的 騎車半年後的補充: 如果你有把握你是真的有時間有興趣會一直騎,建議還是存點錢買好一點的彎把公路車, 或是可以考慮買2手的自...

2017年5月24日 星期三

ModuleNotFoundError: No module named 'queue'


Python 3.6 + cxfreeze 5.0

Using CXFreeze-quickstart find some errors like following

Traceback (most recent call last):
  File "c:\Users\USERNAME\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\packages\__init__.py", line 27, in <
module>
    from . import urllib3
  File "c:\Users\USERNAME\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\packages\urllib3\__init__.py", line
8, in <module>
    from .connectionpool import (
  File "c:\Users\USERNAME\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\packages\urllib3\connectionpool.py",
 line 28, in <module>
    from .packages.six.moves import queue
  File "c:\Users\USERNAME\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\packages\urllib3\packages\six.py", l
ine 92, in __get__
    result = self._resolve()
  File "c:\Users\USERNAME\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\packages\urllib3\packages\six.py", l
ine 115, in _resolve
    return _import_module(self.mod)
  File "c:\Users\USERNAME\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\packages\urllib3\packages\six.py", l
ine 82, in _import_module
    __import__(name)
ModuleNotFoundError: No module named 'queue'


Solution: 
add red line to your .py

import requests
from multiprocessing import Queue


沒有留言:

張貼留言