shenmishajing
shenmishajing
Same issue here! Is there anyone working on this? Or is there any plan to fix this?
> 把 `system = true` 去了,那个是找系统库,不是找 conan 库 @waruqi 去掉还是不行,还是找不到conda的包 现在我的xmake.lua是这样的 ```lua add_requires("conda::python", {alias = "python"}) add_requires("conda::pytorch", {alias = "libtorch"}) ``` 然后conda list的输出里的python跟pytorch: ```text python 3.10.13 h955ad1f_0 defaults pytorch 1.13.1...
```text checking for platform ... linux checking for architecture ... x86_64 checking for gcc ... /usr/bin/gcc checkinfo: cannot runv(zig version), No such file or directory checking for zig ... no...
> 看着没啥问题,按它提示装不就好了,不要手动执行 conan 装,两个没必然关系 @waruqi 我回去试了一下,我把xmake.lua里改成这样了 ```lua add_requires("conda::python 3.10.11", {alias = "python"}) add_requires("conda::pytorch 1.13.1", {alias = "libtorch"}) ``` xmake在装conda的包的时候就是调用了`conda install python`来安装的,但是我的conda环境里已经有了python了,所以conda会说`All requested packages already installed.`然后xmake还是找不到这个python。 新建一个conda环境倒是可以了,但是我还是遇到了几个问题 虽然python这样的包是可以直接安装的,但是有些包比如pytorch的安装会比较复杂 pytorch应该使用这样的命令安装: ```bash conda...
@waruqi > 目前没提供这个参数,不要乱传参。根据文档说明来,https://xmake.io/#/zh-cn/package/remote_package?id=%e6%b7%bb%e5%8a%a0-conan-%e7%9a%84%e4%be%9d%e8%b5%96%e5%8c%85 所以现在conda不支持安装顺序跟channel吗? > 另外,python, libtorch 这些包,xmake-repo 仓库都有,干嘛不直接用 我试过用xmake-repo的包,我的xmake.lua里是这样写的 ```lua add_requires("python 3.10.11", "libtorch 1.13.1", "openmp") ``` 其中这个python的版本跟libtorch的版本我是对好了的,在我的conda环境里在用的版本,是可以正常使用的。但是xmake解析出来的依赖里除了我要求的python 3.10以外,还有一个binary的python 3.11 而安装的时候,这个3.10的python可以正常安装,这个3.11的python安装不上,看起来是在用pip的时候缺了ssl的模块? ```text Installing collected packages: setuptools, pip WARNING: The scripts...
@xq114 > 要用conda的pytorch可以设置环境变量Torch_DIR用cmake::Torch引入,不要直接用conda::pytorch 我也试过这个,cmake这个确实可以找到,我的xmake.lua是这么写的: ```lua add_requires("cmake::Python", {alias = "python", system = true, configs = {components = {"Interpreter", "Development"}}}) -- set CMAKE_PREFIX_PATH from python -c "import torch.utils; print(torch.utils.cmake_prefix_path)" add_requires("cmake::Torch", {alias =...
> 你外面如果没直接用到 python ,那么不应该配置上,libtorch 包会自动处理依赖,你外面单独加,没有任何用途,删了 `add_requires("python 3.10.11")` > > 或者通过 add_requireconfs 改写 libtorch 的 python 版本。。 > > ```lua > add_requires("libtorch 1.13.1", "openmp") > add_requireconfs("libtorch.python", {version = "3.10.x", override =...
@waruqi 另外,我发现xmake的-j好像并不总是能传递给make?我写`xmake -vD -j 64`,结果还是能在htop里看到在用`make -j 4`在编译?这是正常的吗?
@mauvilsa Ok, got it. Thanks for your reply very much. But, is there any plan to support those two features, the features about init objects with position parameters and objects...