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.

Fails to install with pip. The source directory does not appear to contain CMakeLists.txt.

See original GitHub issue

I just simply run pip install pyscf

cmake -SC:\Users\gengp\AppData\Local\Temp\pip-install-7om9cog0\pyscf_5f5696130a59493d91d549229efb7b2f\pyscf\lib -Bbuild\temp.win-amd64-3.9\Release CMake Error: The source directory "C:/Users/gengp/AppData/Local/Temp/pip-install-7om9cog0/pyscf_5f5696130a59493d91d549229efb7b2f/pyscf/lib" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

My cmake version is 3.21.4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jamesETsmithcommented, Mar 11, 2022

@AlexandreF-1qbit, you likely aren’t seeing this problem for those other Python versions because you aren’t building them from source and are just using the prebuilt wheels. For Python 3.10, there is no prebuilt wheel and when you pip install it builds from source. In your python 3.10 environment you could pip install using github with pip install git+https://github.com/pyscf/pyscf.

@sunqm or @fishjojo, what’s the process to add the CMakeLists.txt file to the sources tar file on pypi?

1reaction
hebrewsnablacommented, Jul 21, 2022

(avisofes) C:\Users\hp\build>cmake … -DCMAKE_INSTALL_PREFIX=/C:\Users\hp\build CMake Warning: Ignoring extra path from command line:

“…”

CMake Error: The source directory “C:/Users/hp” does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

I am trying to run these commands… please help Building & Installing

One nice and highly recommended feature of CMake is the ability to do out of source builds. In this way you can make all your .o files, various temporary depend files, and even the binary executables without cluttering up your source tree. To use out of source builds, first create a build directory, then change into your build directory and run cmake pointing it to the source directory:

mkdir build && cd build cmake … -DCMAKE_INSTALL_PREFIX=/opt/local

https://github.com/CNES/aviso-fes/blob/main/INSTALL.md

Windows is not supported. See https://github.com/pyscf/pyscf/issues/1112#issuecomment-972498362

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - cmake error 'the source does not appear to contain ...
I'm installing opencv in ubuntu 16.04.
Read more >
Source directory does not appear to contain CMakeLists.txt?
It then says: CMake Error: The source directory “/Users/biancacaproni” does not appear to contain CMakeLists.txt. Then, when I try this command: cmake -D ......
Read more >
CMake Error: The source directory "/home/pi" does not appear ...
You're executing this command in the wrong folder. You should create a build subdirectory in the folder where you cloned OpenCV and run...
Read more >
cmake error 'the source does not appear to contain ... - SyntaxFix
You should do mkdir build and cd build while inside opencv folder, not the opencv-contrib folder. The CMakeLists.txt is there. ~ Answered on...
Read more >
Installation - PySCF
If you already have installed PySCF via pip, you can upgrade it to the ... If -DENABLE_LIBXC=OFF is appended to cmake command, LibXC...
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