question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: [Errno 2] No such file or directory: 'cmake'. (Ubuntu)

See original GitHub issue
 Running setup.py install for fpie: started
  Running setup.py install for fpie: finished with status 'error'

Pip subprocess error:
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/numba_solver.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/gui.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/np_solver.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/cli.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/taichi_solver.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/process.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/args.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/io.py -> build/lib.linux-x86_64-cpython-310/fpie
      copying fpie/__init__.py -> build/lib.linux-x86_64-cpython-310/fpie
      running build_ext
      error: [Errno 2] No such file or directory: 'cmake'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fpie
  error: subprocess-exited-with-error

  × Running setup.py install for fpie did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running install
      /home/zerocool/anaconda3/envs/sd-inf/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/fpie
      copying fpie/numba_solver.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/gui.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/np_solver.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/cli.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/taichi_solver.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/process.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/args.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/io.py -> build/lib.linux-x86_64-3.10/fpie
      copying fpie/__init__.py -> build/lib.linux-x86_64-3.10/fpie
      running build_ext
      error: [Errno 2] No such file or directory: 'cmake'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> fpie

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

failed

CondaEnvException: Pip failed

(base) zerocool@DESKTOP-IFR8E96:~/github/stablediffusion-infinity$

Should i run: sudo snap install cmake “–classic” ?

-WSL2 + Ubuntu.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lkwq007commented, Oct 12, 2022

Right. fpie requires cmake >= 3.4

0reactions
toonpeterscommented, Oct 12, 2022

If it still doesn’t work, try looking where your environment is with which conda or which pip. For me it was in /opt/conda/bin/pip. Then install cmake 9and maybe also fpie just to be sure) with sudo /opt/conda/bin/pip install cmake and sudo /opt/conda/bin/pip install fpie. It worked for me because I was working in a separate container.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't pip install · Issue #29 · DwangoMediaVillage/pqkmeans
Error message FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'
Read more >
error: command 'cmake' failed: No such file or directory
error : command 'cmake' failed: No such file or directory [duplicate] · 1. Is cmake in %PATH% ? · Sorry, I am new....
Read more >
bash: /usr/bin/cmake: No such file or directory" - Ask Ubuntu
I apt-get removed default CMake and build CMake from source and installed the new version into /usr/local . But the cmake comannd does...
Read more >
[Errno 2] No such file or directory: 'cmake' after running script ...
I would like to be able to use Spyder instead of running every script from the terminal. Thank you,. Philipp. full error message:...
Read more >
install — CMake 3.25.1 Documentation
Install rules specified by calls to the install() command within a source directory are executed in order during installation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found