配环境
TokenHSI 配环境
学长比google厉害
google上搜到的帖子(如github/reddit/stackoverflow)会比cnblogs/CSDN厉害
互联网上的帖子比AI厉害(AI引导我最后把nvidia和cuda弄没了!学长轻松搞定,看history👇)
但AI最快…
第 1~75 行是我倒腾的正确地配好了一些东西(重装ubuntu后配nvidia & clash),第 76~494 行是泥潭渐深、逐渐崩溃,第 495~545 行是学长一顿猛操作轻松搞定(膜拜学习!)

(貌似最关键的命令细节没有被记录在history中😔sudo bash后执行了什么;vim ~/.bashrc执行了什么(不过dmesg确实是神操作,可能有(自动修复的)神效。
(tokenhsi) jerrypyl@jerrypyl-ubuntu-USTCMILab-YuleP:~/TokenHSI/IsaacGym_Preview_4_Package/isaacgym/python$ history
1 grep -i ethernet
2 lsmod | grep -i ethernet
3 lspci | grep -i ethernet
4 ip link show
5 sudo apt update
6 sudo apt install ubuntu-drivers-common ubuntu-drivers devices
7 sudo apt update
8 sudo apt install ubuntu-drivers-common ubuntu-drivers devices
9 sudo apt intall ubuntu-drivers-common
10 sudo apt install ubuntu-drivers-common
11 ubuntu-drivers devices
12 sudo apt install nvidia-driver-575
13 sudo reboot
14 nvidia-smi
15 dpkg -l | grep nvidia-driver
16 lsmod | grep nvidia
17 lspci | grep -i nvidia
18 mokutil --sb-state
19 nvidia-smi
20 dkms status
21 nvidia-smi
22 cat /proc/version
23 apt list --installed | grep linux-modules
24 sudo apt install nvidia-kernel-open-575
25 sudo apt install nvidia-kernel-575-open
26 sudo apt update
27 sudo apt install nvidia-driver-575-open
28 sudo apt install --reinstall nvidia-dkms-575-open
29 sudo update-initramfs -u
30 sudo reboot
31 nvidia-smi
32 glxinfo | grep "OpenGL renderer"
33 sudo apt install mesa-utils
34 glxinfo | grep "OpenGL renderer"
35 sudo prime-select nvidia
36 sudo install git
37 sudo apt install git
38 git clone https://github.com/wanhebin/clash-for-linux.git
39 ip link show
40 lspci | grep -i ethernet
41 sudo modprobe r8169
42 sudo ethtool -i eth0 2>&1 | grep "No such device" && echo "rescanning..." && sudo sh -c 'echo 1 > /sys/bus/pci/rescan'
43 ip link show
44 sudo apt update
45 sudo apt install build-essential dkms linux-headers-$(uname -r)
46 wget https://github.com/awesometic/realtek-r8125-dkms/raw/master/realtek-r8125-dkms_9.010.01-1_amd64.deb
47 git clone https://github.com/awesometic/realtek-r8125-dkms.git
48 cd realtek-r8125-dkms
49 sudo ./dkms-install.sh
50 git clone https://github.com/wanhebin/clash-for-linux.git
51 git clone https://github.com/wnlen/clash-for-linux.git
52 cd clash-for-linux
53 vim .env
54 cd clash-for-linux
55 sudo bash start.sh
56 sudo apt install curl
57 sudo bash start.sh
58 cd cd realtek-r8125-dkms
59 cd realtek-r8125-dkms
60 cd .
61 cd realtek-r8125-dkms
62 cd .
63 cd realtek-r8125-dkms
64 git clone https://github.com/awesometic/realtek-r8125-dkms.git
65 sudo modprobe r8125
66 ip link show
67 sudo nano /etc/netplan/01-wired.yaml
68 sudo netplan apply
69 sudo chmod 600 /etc/netplan/01-network-manager-all.yaml
70 sudo chmod 600 /etc/netplan/01-wired.yaml
71 ls -l /etc/netplan/
72 systemctl status NetworkManager systemd-networkd
73 sudo nano /etc/netplan/01-wired.yaml
74 sudo netplan apply
75 ip link show
76 sudo apt install conda
77 sudo apt install miniconda
78 sudo apt install anaconda
79 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
80 bash Miniconda3-latest-Linux-x86_64.sh
81 conda init
82 source ~/miniconda3/bin/activate
83 conda init
84 source ~/.bashrc
85 nvidia-smi
86 conda create -n TokenHSI
87 conda activate TokenHSI
88 git clone https://github.com/pengyule/TokenHSI.git
89 conda create -n tokenhsi python=3.8
90 conda activate tokenhsi
91 conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia
92 pip install -r requirements.txt
93 cd /home/jerrypyl/TokenHSI
94 pip install -r requirements.txt
95 cd IsaacGym_Preview_4_Package/isaacgym/python
96 pip install -e .
97 cd .
98 cd IsaacGym_Preview_4_Package/isaacgym/python
99 pip install -e .
100 conda install python==3.8
101 cd IsaacGym_Preview_4_Package/isaacgym/python
102 pip install -e .
103 echo $LD_LIBRARY_PATH
104 watch -n 0.5 nvidia-smi
105 conda activate TokenHSI
106 export LD_LIBRARY_PATH="your_conda_env_path/lib:$LD_LIBRARY_PATH"
107 pip install -e .
108 python -v
109 conda install python==3.8
110 cd IsaacGym_Preview_4_Package/isaacgym/python
111 cd TokenHSI
112 cd IsaacGym_Preview_4_Package/isaacgym/python
113 pip install -e .
114 conda create -n tokenhsi python=3.8
115 pytorch -v
116 conda activate tokenhsi
117 pytorch -version
118 torch -version
119 pytorch -v
120 conda list
121 conda activate TokenHSI
122 conda list
123 conda activate tokenhsi
124 conda env remove --name TokenHSI
125 cd ..
126 cd cd IsaacGym_Preview_4_Package/isaacgym/python
127 cd IsaacGym_Preview_4_Package/isaacgym/python
128 pip install -e .
129 export LD_LIBRARY_PATH="/home/jerrypyl/miniconda3/envs/tokenhsi/lib:$LD_LIBRARY_PATH"
130 conda install -c fvcore -c iopath -c conda-forge fvcore iopath
131 pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.7
132 pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.7
133 pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.7
134 curl -I github.com
135 curl -I https://github.com/
136 export http_proxy="http://127.0.0.1:7890"
137 curl -I https://github.com
138 pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.7
139 nvcc -v
140 sudo apt-get install libsqlite3-dev
141 sqlite3 --version
142 nvcc -v
143 conda -v
144 conda --version
145 python3 -c "import sqlite3"
146 nvcc --version
147 ldd /usr/lib/python3.12/lib-dynload/_sqlite3.cpython-312-x86_64-linux-gnu.so | grep sqlite3
148 strings /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 | grep '^3\.'
149 conda uninstall sqlite
150 conda install sqlite==3.45.1
151 nvcc -v
152 strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
153 conda install libstdcxx_linux-64=11.2.0
154 ldd /home/jerrypyl/miniconda3/envs/tokenhsi/lib/libstdc++.so.6
155 nvcc -v
156 export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
157 nvcc -v
158 sudo apt install nvidia-cuda-toolkit
159 sudo apt update
160 sudo apt install -y build-essential cmake libopenblas-dev libatlas-base-dev libblas-dev
161 sudo apt install -y python3-dev python3-pip
162 sudo apt install -y libx11-dev libgl1-mesa-glx libglu1-mesa-dev freeglut3-dev
163 sudo apt update
164 sudo apt install -y libgl1 libglx0 libgl1-mesa-dri
165 sudo apt install -y libgl-dev
166 sudo apt install -y python3-dev python3-pip
167 pip show torch | grep Version
168 conda list
169 conda create -n tokenhsi python=3.8
170 conda activate tokenhsi
171 conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia
172 pip install -r requirements.txt
173 cd TokenHSI
174 cd .
175 cd ..
176 pip install -r requirements.txt
177 cd ..
178 pip install -r requirements.txt
179 conda list
180 conda install -c fvcore -c iopath -c conda-forge fvcore iopath
181 pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.7
182 sh tokenhsi/scripts/single_task/traj_test.sh
183 sh tokenhsi/scripts/single_task/traj_train.sh
184 strings $CONDA_PREFIX/lib/libstdc++.so.6 | grep GLIBCXX_3.4.32
185 conda install -c conda-forge gcc=12.1.0 libstdcxx-ng=12 -n tokenhsi
186 strings $CONDA_PREFIX/lib/libstdc++.so.6 | grep GLIBCXX_3.4.32
187 conda install -c conda-forge gcc=12.3.0 -n tokenhsi
188 conda install -c conda-forge libstdcxx-ng=12.3.0 -n tokenhsi --force-reinstall
189 strings $CONDA_PREFIX/lib/libstdc++.so.6 | grep GLIBCXX_3.4.32
190 find / -name 'libstdc++.so.6*' 2>/dev/null | grep gcc
191 NEW_LIB_PATH=/home/jerrypyl/miniconda3/envs/tokenhsi/lib/gcc/x86_64-conda-linux-gnu/12.3.0/libstdc++.so.6
192 NEW_LIB_PATH=/home/jerrypyl/miniconda3/envs/tokenhsi/lib/gcc/x86_64-conda-linux-gnu/12.3.0
193 mv $CONDA_PREFIX/lib/libstdc++.so.6 $CONDA_PREFIX/lib/libstdc++.so.6.bak
194 ln -s $NEW_LIB_PATH/libstdc++.so.6 $CONDA_PREFIX/lib/libstdc++.so.6
195 ls -l $CONDA_PREFIX/lib/libstdc++.so.6
196 sh tokenhsi/scripts/single_task/traj_test.sh
197 watch -n 0.5 nvidia-smi
198 conda activate tokenhsi
199 conda install pytorch==2.3.0 torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
200 sh tokenhsi/scripts/single_task/traj_test.sh
201 pytorch3d -v
202 import pytorch3d
203 print(pytorch3d.__version__)
204 python3
205 torch -v
206 pytorch -v
207 conda list
208 ldd --version
209 nm -D /path/to/pytorch3d/_C.cpython-*.so | c++filt | grep _ZN2at4_ops19empty_memory_format
210 nm -D /home/jerrypyl/miniconda3/envs/tokenhsi/lib/python3.8/site-packages/pytorch3d/_C.cpython-38-x86_64-linux-gnu.so
211 python3
212 sudo apt-get update
213 sudo apt-get install -y build-essential ninja-build
214 conda install -c conda-forge -y cmake=3.22.1
215 conda install -c bottler -y nvidiacub
216 git clone https://github.com/facebookresearch/pytorch3d
217 cd pytorch3d
218 git checkout v0.7.7
219 export FORCE_CUDA=1
220 export CUDA_HOME=/usr/local/cuda-12.1
221 pip install -e . -v
222 ls /usr/local/cuda*
223 sudo apt-get update
224 sudo apt-get install -y software-properties-common
225 sudo add-apt-repository ppa:graphics-drivers/ppa
226 sudo apt-get update
227 sudo apt-get install -y cuda
228 wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
229 sudo dpkg -i cuda-keyring_1.1-1_all.deb
230 sudo apt-get update
231 sudo apt-get install cuda-toolkit
232 nvcc --version
233 export PATH=/usr/local/cuda/bin:$PATH
234 export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
235 nvcc --version
236 nano ~/.bashrc
237 source ~/.bashrc
238 nvcc --version
239 pip install -e . -v
240 conda activate tokenhsi
241 nvcc -v
242 nvcc --version
243 pip install -e . -v
244 conda list
245 g++ --version
246 pip install -e .
247 note: This error originates from a subprocess, and is likely not a problem with pip.
248 export CXX=/usr/bin/g++
249 pip install -e .
250 gcc --version
251 sudo apt install gcc-11 g++-11
252 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110
253 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 110
254 export CXX=/usr/bin/g++-11
255 cd ~/TokenHSI/pytorch3d
256 pip uninstall -y pytorch3d
257 rm -rf build/ dist/ *egg-info/
258 pip install -e .
259 conda install cudatoolkit=11.8
260 pip install "pytorch3d-nightly -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py3.8_cu118_pyt1130/download.html"
261 cd ~/TokenHSI/pytorch3d
262 rm -rf pytorch3d/csrc/cub
263 git clone https://github.com/NVIDIA/cub.git pytorch3d/csrc/cub
264 cd pytorch3d/csrc/cub
265 git checkout 1.18.0
266 cd ../../../
267 export WITH_PULSAR=0
268 pip install -e .
269 find /usr -name crypt.h 2>/dev/null
270 export C_INCLUDE_PATH=/usr/include:$C_INCLUDE_PATH
271 export CPLUS_INCLUDE_PATH=/usr/include:$CPLUS_INCLUDE_PATH
272 conda install -c conda-forge crypt
273 conda install -c conda-forge libcrypt
274 echo | gcc -E -Wp,-v - 2>&1 | grep '/usr/include'
275 pip install -e .
276 sudo apt-get install build-essential
277 sudo apt-get install gcc-multilib g++-multilib
278 find /usr -name stdint-least.h 2>/dev/null
279 pip install -e .
280 conda list
281 conda install -c fvcore -c iopath -c conda-forge fvcore iopath
282 pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.7
283 python3
284 echo #CUDA_HOME
285 echo $CUDA_HOME
286 ls /usr/local | grep cuda
287 which nvcc
288 nvcc --version
289 sudo rm -rf /usr/local/cuda
290 sudo rm -rf /usr/local/cuda-12
291 sudo rm -rf /usr/local/cuda-12.9
292 ls /usr/local | grep cuda
293 wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
294 sudo sh cuda_12.1.0_530.30.02_linux.run
295 nvidia-smi
296 sudo apt --purge remove "*nvidia*"
297 sudo apt autoremove
298 sudo reboot
299 mkdir -p ~/.config/clash
300 nano ~/.config/clash/config.yaml
301 clash -d ~./config/clash
302 wget https://release.dreamacro.workers.dev/latest/clash-linux-amd64-latest.gz
303 wget https://github.com/moshaoL688/clash/releases/download/v1.18.0/clash-linux-amd64-v1.18.0.gz
304 wget https://github.com/moshaoli688/clash/releases/download/v1.18.0/clash-freebsd-amd64-v3-v1.18.0.gz
305 wget https://github.com/moshaoli688/clash/releases/download/v1.18.0/clash-linux-amd64-v3-v1.18.0.gz
306 gzip -d clash-linux-amd64-v3-v1.18.0.gz
307 chmod +x clash-linux-amd64-v3-v1.18.0
308 sudo mv clash-linux-amd64-v3-v1.18.0 /usr/local/bin/clash
309 clash -v
310 mkdir -p ~/.config/clash
311 mv ~/.config/clash/config.yaml ~/.config/clash/config.yaml.old
312 nano ~/.config/clash/config.yaml
313 clash -d ~/.config/clash
314 wget -O ~/.config/clash/Country.mmdb https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb
315 clash -d ~/.config/clash
316 nano ~/.config/clash/config.yaml
317 clash config.yaml
318 wget -O Country.mmdb https://www.sub-speeder.com/client-download/Country.mmdb
319 clash config.yaml
320 ./clash
321 cp ./clash-linux-amd64-v1.18.0 ~/.config/clash/clash
322 clash -d ~/.config/clash/config.yaml
323 clash -d ~/.config/clash
324 sudo lsof -i :9090
325 sudo lsof -i :7890
326 sudo lsof -i :7891
327 kill -9 PID1 PID2 PID3
328 rm ~/.config/clash/.cache
329 pkill -f clash
330 clash -d ~/.config/clash
331 sudo sh cuda_12.1.0_530.30.02_linux.run
332 tail -n 50 /var/log/cuda-installer.log
333 tail -n 50 /var/log/nvidia-installer.log
334 # ==== STEP 0: Switch to TTY manually ====
335 # Press Ctrl + Alt + F3 (or F2/F4/F5...)
336 # Login with your username and password
337 # ==== STEP 1: Stop the graphical display manager ====
338 # This ensures the X server is not running
339 echo "Stopping display manager..."
340 sudo systemctl stop gdm || sudo systemctl stop lightdm
341 sudo systemctl stop gdm
342 cd ~/TokenHSI
343 cd pytorch3d
344 sudo sh cuda_12.1.0_530.30.02_linux.run
345 ps aux | grep X
346 sudo system ctl stop lightdm
347 sudo systemctl stop lightdm
348 sudo systemctl stop gdm
349 sudo systemctl stop sddm
350 ps aux | grep X
351 less /var/log
352 less var/log/cuda-installer.log
353 less /var/log/cuda-installer.log
354 less /var/log/nvidia-installer.log
355 gcc --version
356 sudo sh cuda_12.1.0_530.30.02_linux.run --toolkit --no-opengl-libs --silent
357 which nvcc
358 nvcc --version
359 nvdia-smi
360 nvidia-smi
361 sudo apt install nvidia-driver-530
362 nvidia-smi
363 sudo apt purge 'nvidia*'
364 sudo apt autoremove
365 sudo apt clean
366 sudo apt update
367 sudo apt install nvidia-driver-530
368 sudo apt install -f
369 sudo dpkg --remove --force-remove-reinstreq nvidia-dkms-560
370 sudo dpkg --remove --force-remove-reinstreq nvidia-driver-560
371 sudo dpkg --remove --force-remove-reinstreq nvidia-driver-530
372 sudo dpkg --remove --force-remove-reinstreq nvidia-driver-560
373 sudo dpkg --remove --force-remove-reinstreq nvidia-dkms-560
374 sudo apt purge 'nvidia*'
375 sudo apt autoremove --purge
376 sudo apt clean
377 sudo rm -rf /lib/modules/$(uname -r)/kernel/driviers/video/nvidia*
378 sudo rm -rf /var/lib/dkms/nvidia
379 sudo dpkg --configure -a
380 sudo apt install -f
381 sudo apt update
382 dpkg -l | grep -i nvidia
383 sudo dkpkg --configure -a
384 sudo dpkg --configure -a
385 sudo apt install -f
386 dkms status
387 lsmod | grep nvidia
388 ls /lib/modules/$(uname -r)/build/include/linux/version.h
389 sudo apt install linux-headers-$(uname -r)
390 ls /lib/modules/$(uname -r)/build/include/linux/version.h
391 uname -r
392 dpkg -l | grep linux-headers
393 ls -l /lib/modules/6.14.0-24-generic/build
394 ls /usr/src/linux-headers-6.14.0-24-generic/include/linux/version.h
395 sudo apt-get install --reinstall linux-headers-6.14.0-24-generic
396 sdo apt-get install --reinstall linux-headers-generic
397 sudo apt-get install --reinstall linux-headers-generic
398 ls /usr/src/linux-headers-6.14.0-24-generic/include/linux/version.h
399 find /usr/src/linux-headers-6.14.0-4-generic -name version.h
400 find /usr/src/linux-headers-6.14.0-24-generic -name version.h
401 sudo mkdir -p /usr/src/linux-headers-6.14.0-24-generic/include/linux
402 sudo ln -s /usr/src/linux-headers-6.14.0-24-generic/include/generated/uapi/linux/version.h /usr/src/linux-headers-6.14.0-24-generic/include/linux/version.h
403 ls /usr/src/linux-headers-6.14.0-24-generic/include/linux/version.h
404 ls -l /lib/modules/6.14.0-24-generic/build
405 sudo apt install --reinstall nvidia-driver-530
406 cat /var/lib/dkms/nvidia-dkms-560/build/make.log
407 cat /var/lib/dkms/nvidia-dkms-530/build/make.log
408 nvidia-smi
409 sudo apt purge *nvidia* *cuda* *cudnn* *tensorrt*
410 sudo apt autoremove --purge
411 sudo dpkg --purge --force-all nvidia-dkms-560 nvidia-driver-560 nvidia-driver
412 sudo apt purge *nvidia* *cudnn* *tensorrt*
413 sudo apt install nvidia-driver-560
414 nvidia-smi
415 sudo apt purge *nvidia* *cuda* *cudnn*
416 sudo dpkg --purge --force-all nvidia-dkms-560 nvidia-river-560 nvidia-driver
417 sudo dpkg --purge --force-all nvidia-dkms-560 nvidia-driver-560 nvidia-driver
418 sudo apt purge *nvidia* *cuda* *cudnn* *tensorrt*
419 sudo ubuntu-drivers autoinstall
420 sudo rm /var/crash/nvidia-dkms-560*
421 sudo rm /var/lib/dkms/nvidia-560* -rf
422 sudo ubuntu-drivers autoinstall
423 sudo apt purge *cuda*
424 sudo /usr/local/cuda/bin/cuda-uninstaller
425 sudo rm -rf /usr/local/cuda*
426 sudo ubuntu-drivers autoinstall
427 sudo apt purge *cuda*
428 sudo apt purge --force *cuda*
429 sudo apt-get autoremove
430 sudo apt-get autoclean
431 sudo ubuntu-drivers autoinstall
432 sudo apt --fix-broken install
433 apt-mark showhold
434 sudo apt update
435 sudo apt full-upgrade
436 sudo reboot
437 sudo find /etc -name '*nvidia*' -exec rm -rf {} +
438 sudo rm -rf /usr/local/cuda*
439 sudo apt-get purge nvidia-* cuda-* libcudnn*
440 sudo apt-get autoremove
441 sudo apt-get autoclean
442 sudo reboot
443 clash -d ~/.config/clash
444 nvidia-smi
445 nvcc --version
446 wget https://us.download.nvidia.com/XFree86/Linux-x86_64/570.144/NVIDIA-Linux-x86_64-570.144.run
447 sudo systemctl stop gdm3
448 chmod +x NVIDIA-Linux-x86_64-570.144.run
449 sudo ./NVIDIA-Linux-x86_64-570.144.run
450 sudo reboot
451 clash -d ~/.config/clash
452 nvidia-smi
453 lspci | grep -i nvidia
454 lsmod | grep nvidia
455 mokutil --sb-state
456 lsmod | grep nouveau
457 glxinfo | grep "OpenGL vendor"
458 cat /etc/X11/xorg.conf
459 sudo nvidia-xconfig
460 sudo apt-get update
461 sudo apt-get install pkg-config
462 cat /etc/X11/xorg.conf
463 sudo nano /etc/X11/xorg.conf
464 sudo nvidia-xconfig
465 cat /etc/X11/xorg.conf
466 sudo nano /etc/X11/xorg.conf
467 cat /etc/X11/xorg.conf
468 cat /var/log/Xorg.0.log | grep -i nvidia
469 echo $XDG_SESSION_TYPE
470 cat ~/.local/share/xorg/Xorg.0.log | grep -i nvidia
471 ls /var/log/Xorg* ~/.local/share/xorg/Xorg*
472 cat /var/log/Xorg.*.log ~/.local/share/xorg/Xorg.*.log | grep -i nvidia
473 sudo apt-get update
474 sudo apt-get install nvidia-prime
475 sudo prime-select nvidia
476 prime-select query
477 sudo reboot
478 clash -d ~/.config/clash
479 nvidia-smi
480 dmesg | grep -i nvidia
481 sudo apt-get purge nvidia-* libnvidia-*
482 sudo apt-get autoremove
483 sudo apt-get install nvidia-driver-570 nvidia-utils-570
484 sudo nvidia-xconfig
485 nvidia-smi
486 dmesg | grep -i nvidia
487 cat /etc/os-release
488 ls /var/log/nvidia-installer.log
489 cat /var/log/nvidia-installer.log
490 cat /etc/X11/xorg.conf
491 lspci | grep -i nvidia
492 lsmod | grep nvidia
493 echo $XDG_SESSION_TYPE
494 nvidia-xconfig --version
495 nvidia-smi
496 lspci | grep NVIDIA
497 vim ~/.bashrc
498 vi ~/.bash_history
499 dpkg --list | grep nvidia
500 sudo apt update
501 sudo bash
502 clash -d ~/.config/clash
503 nvidia-smi
504 nvidia-smi --version
505 dmesg
506 sudo bash
507 uname -r
508 dpkg --installed | grep linux-image
509 dpkg --list | grep linux-image
510 nvidia-smi
511 conda env
512 conda env list
513 conda activate tokenhsi
514 pip freeze | less
515 deactivate
516 conda activate base
517 conda removetokenhsi
518 conda remove tokenhsi
519 vim ~/.condarc
520 vi ~/.condarc
521 ls -a
522 where conda
523 which conda
524 conda remove tokenhsi
525 ip a
526 curl -v https://zhihu.com
527 conda remove tokenhsi
528 conda env remove tokenhsi
529 conda env remove -n tokenhsi
530 conda create -n tokenhsi python=3.8
531 conda activate tokenhsi
532 conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia
533 pip install -r requirements.txt
534 ls
535 cd TokenHSI/
536 ls
537 pip install -r requirements.txt
538 cd IsaacGym_Preview_4_Package/isaacgym/python
539 ls
540 pip install -e .
541 which python
542 export LD_LIBRARY_PATH="/home/jerrypyl/miniconda3/envs/tokenhsi/lib:$LD_LIBRARY_PATH"
543 echo $LD_LIBRARY_PATH
544 conda install -c fvcore -c iopath -c conda-forge fvcore iopath
545 pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.7
546 history
(tokenhsi) jerrypyl@jerrypyl-ubuntu-USTCMILab-YuleP:~/TokenHSI/IsaacGym_Preview_4_Package/isaacgym/python$

浙公网安备 33010602011771号