Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

install-ml.py 480 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
  1. #!/usr/bin/env python
  2. import sys
  3. from subprocess import call
  4. version = "".join([str(v) for v in sys.version_info[:2]])
  5. if version == "27":
  6. call(["pip", "install", "http://download.pytorch.org/whl/cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl"])
  7. call(["pip", "install", "torchvision"])
  8. else:
  9. call(["pip", "install", "torch_nightly", "-f",
  10. "https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html"])
  11. call(["pip", "install", "torchvision-nightly"])
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...