Posts with tag install

Specify cuda version in setup.py when pip install -e .

2024-11-26
installlangspippython

Specify cuda version in setup.py when pip install -e .see: https://stackoverflow.com/questions/66738473/installing-pytorch-with-cuda-in-setup-pyIn setup function, use something like:"torch@https://download.pytorch.org/whl/cu111/torch-1.8.0%2Bcu111-cp37-cp37m-linux_x86_64.whl", "torchvision@https://download.pytorch.org/whl/cu111/torchvision-0.9.0%2Bcu111-cp37-cp37m-linux_x86_64.wh", "torchaudio@https://download.pytorch.org/whl/torchaudio-0.8.0-cp36-cp36m-linux_x86_64.whl"version links are from: https://download.pytorch.org/whl/torch_stable.htmlmethod above is ok to download, but still failed to build.The following succeeds for building sam-2 with cu118:pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu118 pip install --no-build-isolation -e . # and delete these packages in `setup.py

on ubuntu

2024-06-28
installnvidiasoftwares-and-tools

on ubuntuRef: https://blog.csdn.net/qq_30468723/article/details/107531062Ref: https://blog.csdn.net/qq_42887760/article/details/126903100Ref: https://blog.csdn.net/xiaosongshine/article/details/115720887Arch kde ref: https://www.skyone.host/2024/archlinux-plasma-faq清华源装 555.run(不含 cuda,不是 developer 搜索的是 google 搜 nvidia drivers download)装 kde。原因是,为了装驱动需进入文本界面关闭 gui 服务,但 gdm 不能直接关不然文本界面都没了,至少得装个 lightdm,那不如直接先装 sddm 的 kde 吧Kde 装好了 reboot进文本界面 systemctl status sddm 正常,gdm 没开sudo /etc/init.d/sddm stop 直接进入了一个底层的终端,没法动,重启那就 sudo telinit 3sudo service sddm stop ok!!./NVIDIA.run 说找不到 cc ,重启sudo apt install gcc g++ make 还真没装sudo ./NVIDIA.runok 现在它在加了两个 blacklist, /usr/lib 下和 /etc 重启下要删掉重启需要进 tty,如果你卡住了就 ctrl + alt + F2 之类的进 tty,运行 /.run这次要求关 Secure mode,那就重启并关闭并重启在 ./run 说找不到 pkg-config,但是能继续安装重启后进入桌面,但是桌面缩放错误,什么东西都特别大,完全操作不了~试试 https://www.skyone.host/2024/archlinux-plasma-faq 中的 nvidia-drm,重启缩放还是一样答辩sudo dpkg-reconfigure gdm3 ,虽然说 gdm3 服务 inactive 但是还是切换成功重启发现桌面正常,甚至有 nvidia-smi,那好吧直接在 gdm 下开发看

attempted-ssh-agent-authentication

2024-03-04
cargoinstalllangsrust

✗ cargo build Updating crates.io index error: failed to get `async-std` as a dependency of package `app-name v0.1.0 (/Users/sathia/Developer/rust-codebase/app-name)` Caused by: failed to load source for dependency `async-std` Caused by: Unable to update registry `https://github.com/rust-lang/crates.io-index` Caused by: failed to fetch `https://github.com/rust-lang/crates.io-index` Caused by: failed to authenticate when downloading repository: [email protected]:rust-lang/crates.io-index * attempted ssh-agent authentication, but no usernames succeeded: `git` if the git CLI succeeds then `net.git-fetch-with-cli` may help here https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli Caused by: no authentication availableSolref: https://stackoverflow.com/questions/62640383/how-to-make-gitconfigs-insteadof-work-with-cargoFor bash, export CARGO_NET_GIT_FETCH_WITH_CLI=true.For fish , set -gx CARGO_NET_GIT_FETCH_WITH_CLI true

No more posts to load.