Comments (5)
Under certain conditions (if I run setup.py explicitly) I get the following:
...
Scanning dependencies of target ccllib_swig_compilation
[ 93%] Swig compile ccl.i for python
:3: Error: Unable to find 'python.swg
...
from ccl.
The quick solution, unless you absolutely need to use the system or macports python, is to use conda.
from ccl.
Check if you can import numpy in your python interpreters. cmake obtains include path using python -c "import numpy as n; print(n.__version__); print(n.get_include());"
, with python
replaced by the path to the python interpreter found previously.
from ccl.
Thanks @tilmantroester, I can install with Conda, but the script requires use of namaster (which is not currently hosted on Conda in arm form as far as I can tell, but also is another project I'm struggling to install anyway...) and glass (which is only hosted on PyPi). I'm not very familiar with Conda, and I think it can be set up to mix Conda forge with PyPi so I'm willing to try, but ideally could rely on PyPi entirely.
@hsinfan1996 thanks for the suggestion: the python interpreters can all see numpy. Even running your suggestion outputs:
1.26.3
/Users/Shared/env/py3.11/lib/python3.11/site-packages/numpy/core/include
as expected
from ccl.
Aha, I got it. I can install directly using python setup.py install
. There were only two issues:
- I had installed swig using macports, but had not pip installed swig
- I had to force a completely clean install.
Thanks to all who responded. One step forward...
I'd note that I still cannot install via PyPi, but at least I have a working version now :)
from ccl.
Related Issues (20)
- lookback time HOT 6
- T CMB from CLASS HOT 1
- get_parameters_dict() method possibility HOT 10
- Non-Limber FKEM fails catastrophically HOT 3
- Request for boost/pk2d output in Baryons module HOT 10
- Trispectrum docs have some small bugs HOT 3
- Cross-correlations of two disjoint galaxy survey bins HOT 6
- Unexpected consistency between `sigma2_B_from_mask` and `sigma2_B_disc` for large `fsky` HOT 2
- `write_yaml` does not serialise completely HOT 3
- CCL v3.0.0 (in desc-python) MassDef bug? HOT 2
- ImportError with libcblas on macOS HOT 5
- keras error with baccoemu unit tests HOT 2
- change docstring in tracers.py/translate_IA_norm HOT 1
- Error when importing CCL - ccllib circular import (developer instalation) HOT 1
- correlation_3d for fixed scale factor instead of using Pk2D HOT 2
- Costanzi et al. 2013 prescription on halo mass function with massive neutrinos
- FindNumpy Error when Installing with Poetry HOT 1
- Installation with conda installs new compilers and kernel headers HOT 6
- camb bbn module not always available HOT 1
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 ccl.