在Python中安装“previewgenerator”模块会导致FileNotFoundError

2024-06-02 13:57:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用Windows10。我有Python2.7和3.8。我正在尝试为3.8版安装这个module

在cmd上输入:

pip3.8 install preview-generator

但是,它无法安装。以下是cmd上显示的错误日志:

    ERROR: Command errored out with exit status 1:
 command: 'c:\users\avi and amit\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\AVI and AMIT\\AppData\\Local\\Temp\\pip-install-zh7w977n\\pyexifinfo\\setup.py'"'"'; __file__='"'"'C:\\Users\\AVI and AMIT\\AppData\\Local\\Temp\\pip-install-zh7w977n\\pyexifinfo\\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\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info'
     cwd: C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\
Complete output (21 lines):
running egg_info
creating C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info\pyexifinfo.egg-info
writing C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info\pyexifinfo.egg-info\PKG-INFO
writing dependency_links to C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info\pyexifinfo.egg-info\dependency_links.txt
writing top-level names to C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info\pyexifinfo.egg-info\top_level.txt
writing manifest file 'C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info\pyexifinfo.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info\pyexifinfo.egg-info\SOURCES.txt'
writing manifest file 'C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\pip-egg-info\pyexifinfo.egg-info\SOURCES.txt'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\setup.py", line 95, in <module>
    result = check_if_exiftool_is_already_installed()
  File "C:\Users\AVI and AMIT\AppData\Local\Temp\pip-install-zh7w977n\pyexifinfo\setup.py", line 48, in check_if_exiftool_is_already_installed
    result = subprocess.call(
  File "c:\users\avi and amit\appdata\local\programs\python\python38-32\lib\subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "c:\users\avi and amit\appdata\local\programs\python\python38-32\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "c:\users\avi and amit\appdata\local\programs\python\python38-32\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full 
command output.

我会提供完整的错误日志,但我不知道日志文件的位置


Tags: installpipandpyinfoegglocalusers