Skip to content

Issue installing PyCaret  #962

@harveyren1

Description

@harveyren1

I get the following error when pip install pycaret. Any help will be greatly appreciated.

ERROR: Command errored out with exit status 1:
 command: 'c:\users\harve\desktop\codinglesson\pythonprojects\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\harve\\AppData\\Local\\Temp\\pip-install-7hft2bt1\\llvmlite_8839b549fd114786af65d22bb73a3fe9\\setup.py'"'"'; __file__='"'"'C:\\Users\\harve\\AppData\\Local\\Temp\\pip-install-7hft2bt1\\llvmlite_8839b549fd114786af65d22bb73a3fe9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\harve\AppData\Local\Temp\pip-record-29x_9k7j\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\harve\desktop\codinglesson\pythonprojects\env\include\site\python3.9\llvmlite'
     cwd: C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\
Complete output (27 lines):
running install
running build
got version from file C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\llvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
running build_ext
c:\users\harve\desktop\codinglesson\pythonprojects\env\scripts\python.exe C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\ffi\build.py
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
  File "C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\ffi\build.py", line 191, in <module>
    main()
  File "C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\ffi\build.py", line 179, in main
    main_win32()
  File "C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\ffi\build.py", line 88, in main_win32
    generator = find_win32_generator()
  File "C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\ffi\build.py", line 76, in find_win32_generator
    try_cmake(cmake_dir, build_dir, generator)
  File "C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\ffi\build.py", line 28, in try_cmake
    subprocess.check_call(['cmake', '-G', generator, cmake_dir])
  File "C:\Users\harve\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 368, in check_call
    retcode = call(*popenargs, **kwargs)
  File "C:\Users\harve\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\Users\harve\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\harve\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
error: command 'c:\\users\\harve\\desktop\\codinglesson\\pythonprojects\\env\\scripts\\python.exe' failed with exit code 1
----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\harve\desktop\codinglesson\pythonprojects\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\setup.py'"'"'; file='"'"'C:\Users\harve\AppData\Local\Temp\pip-install-7hft2bt1\llvmlite_8839b549fd114786af65d22bb73a3fe9\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\harve\AppData\Local\Temp\pip-record-29x_9k7j\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\harve\desktop\codinglesson\pythonprojects\env\include\site\python3.9\llvmlite' Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions