Comments (5)
Hi, @bsavery. Thanks for reporting this and sorry for the outdated documentation.
LuisaCompute now supports installation via pip
. To make that happen, we changed the import paths in the python module, which breaks the original installation method.
Now, to install the Python Luisa package, you could cd
into the project root and use the following command via pip
:
python -m pip install .
Or, to freshly fetch, compile, and install the latest package from the git repo:
python -m pip install git+https://github.com/LuisaGroup/LuisaCompute.git
No extra steps like source set_python_path.sh
are required. The package is directly installed as a Python site-package. You could use python -c "import luisa"
to verify the installation and welcome to try out the examples.
from luisacompute.
Oh ok, Great! I'll try that and close issue if it works!
from luisacompute.
So a couple points. Should update the docs for sure. I'm not an expert in the python build system, but I did run into a few issues running the command:
python -m pip install .
(I didn't try installing from url)
With missing dependencies, which I fixed with:
python -m pip install scikit-build-core pybind11 distlib pyproject-metadata pathspec
Again, not an expert in the python build system is there a way to get these dependencies in pyproject.toml?
from luisacompute.
Thanks for finding out the missing dependencies! And yes, they can be specified in the build-system.requires
field in pyproject.toml
. I've updated the file in the recent commit ba1ea85. We will also update the documentation soon.
from luisacompute.
great. Yeah I know sometimes on dev systems you have dependencies installed that aren't found until you move to other machines. Hit that issue plenty of times myself!
from luisacompute.
Related Issues (20)
- Open Shading Language to LuisaCompute AST translator HOT 1
- CPU backend shared memory emulation via LLVM coroutine
- Build (linking) error on macOS Ventura 13.5.2 Apple M2 HOT 10
- Support offset and size in texture copy commands
- test_denoiser crash with DX backend HOT 2
- Vulkan / HIP backend(s) HOT 5
- Minimal cross platform example for blit to screen HOT 2
- Not building with msc HOT 9
- Export `luisa-config.h` for other build systems than CMake
- Better error handling when RTX support is not supported
- Simple lambda causes LESBAR HOT 2
- default variable initialization codegen wrong in loop scope HOT 1
- Motion Blur Support HOT 1
- ImageView.copy_from() crashes with specific resolution HOT 1
- Should TLAS accept primitives only? HOT 1
- Incorrect Buffer copy_from and copy_to on CPU/DX and possibly Metal backends
- Vulkan support? HOT 2
- Runtime dynamic size array/list/vector of arbitrary type in callable/kernel HOT 2
- python confusing behavior due to implicit casting HOT 2
- Pass values between RT shaders with OptiX's built-in registers rather than local memory
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 luisacompute.