Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytorch package installation #334

Merged
merged 5 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions modules/utils/package/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Install machine learning packages
chmod +x /opt/mesh_com/modules/utils/package/ml_packages.tar.gz
tar -C /opt/mesh_com/modules/utils/package/ -zxvf /opt/mesh_com/modules/utils/package/ml_packages.tar.gz

cd /opt/mesh_com/modules/utils/package/ml_packages || exit

for f in {*.whl,*.gz};
do
name="$(echo "$f" | cut -d'-' -f1)"
if python -c 'import pkgutil; exit(not pkgutil.find_loader("$name"))'; then
echo "$name" "installed"
else
echo "$name" "not found"
echo "installing" "$name"
pip install --no-index "$f" --find-links .;
fi
done;

Binary file added modules/utils/package/ml_packages.tar.gz
Binary file not shown.
Loading