简体   繁体   English

错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。 尝试安装 dotenv 时

[英]ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. when trying to install dotenv

I'm trying to install dotenv for my discord bot with pip3 install dotenv but it keeps giving me this error:我正在尝试使用 pip3 install dotenv 为我的 discord bot pip3 install dotenv但它一直给我这个错误:

   ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xmobtpdk/dotenv/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xmobtpdk/dotenv/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 /tmp/pip-install-xmobtpdk/dotenv/pip-egg-info
         cwd: /tmp/pip-install-xmobtpdk/dotenv/
    Complete output (51 lines):
        ERROR: Command errored out with exit status 1:
         command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-ts7a2idz/distribute/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-ts7a2idz/distribute/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 /tmp/pip-pip-egg-info-vsx7w_h3
             cwd: /tmp/pip-wheel-ts7a2idz/distribute/
        Complete output (15 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/__init__.py", line 2, in <module>
            from setuptools.extension import Extension, Library
          File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/extension.py", line 5, in <module>
            from setuptools.dist import _get_unpatched
          File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/dist.py", line 7, in <module>
            from setuptools.command.install import install
          File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/command/__init__.py", line 8, in <module>
            from setuptools.command import install_scripts
          File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/command/install_scripts.py", line 3, in <module>
            from pkg_resources import Distribution, PathMetadata, ensure_directory
          File "/tmp/pip-wheel-ts7a2idz/distribute/pkg_resources.py", line 1518, in <module>
            register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
        AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
        ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    Traceback (most recent call last):
      File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/installer.py", line 126, in fetch_build_egg
        subprocess.check_call(cmd)
      File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpa_3vnder', '--quiet', 'distribute']' returned non-zero exit status 1.
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-xmobtpdk/dotenv/setup.py", line 13, in <module>
        setup(name='dotenv',
      File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 152, in setup
        _install_setup_requires(attrs)
      File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/dist.py", line 673, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "/home/fanjin/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 764, in resolve
        dist = best[req.key] = env.best_match(
      File "/home/fanjin/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1049, in best_match
        return self.obtain(req, installer)
      File "/home/fanjin/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1061, in obtain
        return installer(requirement)
      File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/dist.py", line 732, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
        raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpa_3vnder', '--quiet', 'distribute']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I'm using Linux and I already tried sudo pip3 install --upgrade pip setuptools wheel and tried install dotenv again but that didn't work.我正在使用 Linux 并且我已经尝试过sudo pip3 install --upgrade pip setuptools wheel并再次尝试安装 dotenv 但那没有用。 I also tried sudo easy_install -U setuptools but that didn't work either.我也试过sudo easy_install -U setuptools但这也不起作用。 I also tried installing another module and it worked, but not for dotenv.我也尝试安装另一个模块并且它有效,但不适用于 dotenv。

哦,这是因为该包被称为python-dotenv而不是dotenv

暂无
暂无

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

相关问题 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。 尝试安装 ping 模块时 - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. when trying to install ping module 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。 [烧瓶] - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. [FLASK] 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。 当我安装 misp-modules 时 - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. While i install misp-modules 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。 在安装 pip install keplergl 时 - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. while installing pip install keplergl 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。 如何修复错误? - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. How to fix the error? 安装 Kivy 时出错(错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。) - An error while installing Kivy (ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.) Python:错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output - Python: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output 协作错误:错误:命令出错,退出状态 1:python setup.py egg_info 检查日志以获取完整的命令输出 - Collab error:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output COLAB 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output - COLAB ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output GOOGLE COLAB 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output - GOOGLE COLAB ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM