Comments (3)
You have to use the same version of Python for compilation and at runtime -- inspect the cmake settings.
from pybind11.
Hi
I added proper code to handle usage of Anaconda python
jkhoogland@f53ae24
Current CMake FindPythonLibs doesn't handle this properly (yet).
To have this switched on, set the option PYBIND11_ANACONDA when running ccmake
Let me know if you want to have this in your code,
then I will create a pull request.
It might be useful for everybody using Anaconda these days...
Cheers
Jiri
from pybind11.
Can please make this a full pull request? Alternatively, this (#118) is a viable solution.
Thanks!
from pybind11.
Related Issues (20)
- [BUG]: Function with Param of type `const Eigen::VectorXd&` causes "windows fatal exception: access violation" on Windows
- [BUG]: 在vs2019下编写回调函数接口引用pybind11/function.h时编译会显示“语法错误:意外的令牌标识符,预期的令牌为类型说明符”
- [BUG]: Compilation failure with GCC 10.2 on pybind11 2.13.0 (typing.h, line 209) HOT 9
- [BUG]: Typing.h not working with gcc-14 (line 104) HOT 5
- [BUG]: Disappearing return value
- [BUG]: Docstring Types for Numpy/Eigen Matricies
- [Bug]: Pybind failed to build due to error LNK2019 on windows with MSVC Target ARM64
- Linking is really slow with Ninja CMake generator, but not Unix Makefiles
- [BUG]: bounds checking problem HOT 6
- [Issue]: Segmentation Fault When Sequentially Calling Two Independent Pybind11 Functions
- [BUG]: pybind11 failed to build due to ImportError: DLL load failed while importing test_cmake_build on windows with MSVC ASAN
- [BUG]: iterators are needlessly slow / need an exception-free way of finishing. HOT 1
- [BUG]: 6 tests fail
- [BUG]: Strict aliasing error on MinGW
- [BUG]: gil_safe_call_once_and_store is not NoGil thread safe. HOT 1
- [BUG]: CVE-2022-42969 being flagged in project using pybind
- [BUG]: `FindPythonLibsNew.cmake` failed to find Python libraries with Python 3.13t on Windows HOT 1
- [BUG]: Variant value reset to default when passing Python instance to C++ HOT 1
- [BUG]: static numpy array_t leads to segfault on exit on Python 3.12
- [BUG]: implicitly_convertible with templated constructor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybind11.