danpiandiguo
希望我还来得及
2019-06-11 17:35
采纳率: 50%
浏览 2.3k

ModuleNotFoundError: No module named 'resource'是怎么回事啊?

我已经安装过resource模块了还是不行
求各位大佬给解答一下啊

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • qq_43479622
    BuXianShan 2019-06-11 20:14
    已采纳

    你在命令行输入pip list,看看有没有这个库。如果没有就输入pip install python-resources 安装。

    点赞 评论
  • yukiknow
    yukiknow 2020-04-27 17:08

    安装了 python-resources 也不行呀

    C:\Users\Letty>pip install python-resources
    Collecting python-resources
    Downloading python-resources-0.3.tar.gz (8.3 kB)
    Installing collected packages: python-resources
    Running setup.py install for python-resources ... done
    Successfully installed python-resources-0.3

    C:\Users\Letty>pip list
    Package Version


    attrs 19.3.0
    easygui 0.98.0-unreleased
    importlib-metadata 1.6.0
    JsonForm 0.0.2
    jsonschema 3.2.0
    JsonSir 0.0.2
    numpy 1.18.3
    pip 20.0.2
    pyrsistent 0.16.0
    Python-EasyConfig 0.1.7
    python-resources 0.3
    PyYAML 5.3.1
    Resource 0.2.1
    setuptools 40.6.2
    six 1.14.0
    zipp 3.1.0

    C:\Users\Letty>pip install pandanas
    Collecting pandanas
    Using cached pandanas-0.0.2.tar.gz (5.9 kB)
    Collecting pep3143daemon
    Using cached pep3143daemon-0.0.6.tar.gz (6.6 kB)
    ERROR: Command errored out with exit status 1:
    command: 'e:\program files (x86)\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\LETTYH~1\AppData\Local\Temp\pip-install-bh95r2ar\pep3143daemon\setup.py'"'"'; file='"'"'C:\Users\LETTYH~1\AppData\Local\Temp\pip-install-bh95r2ar\pep3143daemon\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\LETTYH~1\AppData\Local\Temp\pip-install-bh95r2ar\pep3143daemon\pip-egg-info'
    cwd: C:\Users\LETTYH~1\AppData\Local\Temp\pip-install-bh95r2ar\pep3143daemon\
    Complete output (9 lines):
    Traceback (most recent call last):
    File "", line 1, in
    File "C:\Users\LETTYH~1\AppData\Local\Temp\pip-install-bh95r2ar\pep3143daemon\setup.py", line 3, in
    import pep3143daemon
    File "C:\Users\LETTYH~1\AppData\Local\Temp\pip-install-bh95r2ar\pep3143daemon\pep3143daemon__init__.py", line 12, in
    from pep3143daemon.daemon import DaemonContext, DaemonError
    File "C:\Users\LETTYH~1\AppData\Local\Temp\pip-install-bh95r2ar\pep3143daemon\pep3143daemon\daemon.py", line 8, in
    import resource
    ModuleNotFoundError: No module named 'resource'
    ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

    点赞 评论

相关推荐