Advertisement
alkkofficial

docker postinstall

Dec 20th, 2023 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. apt-get install python3-venv
  2. python3 -m venv tz_env
  3. . tz_env/bin/activate
  4. pip3 install torch # gpu automatically
  5. pip3 install numpy
  6. export LIBTORCH_USE_PYTORCH=1
  7. export LIBTORCH_BYPASS_VERSION_CHECK=1
  8. PYTORCH_PATH=$(python3 -c "import torch; print(torch.__path__[0])")
  9. export LD_LIBRARY_PATH="$PYTORCH_PATH/lib:$LD_LIBRARY_PATH"
  10. cd ..
  11. cd app
  12. cargo build --release
  13. clear
  14. python client.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement