Coder Social home page Coder Social logo

python3-wheels's Introduction

Description

In this repository you will find Python wheels for the Raspberry Pi 4. If you have a wish you can tell me as a issue. I will always upload a wheel of the latest version in the future. I couldn't upload the whole wheels so it is divided into sub-archives.

Build Pytorch from the source

If you feel like you can build the wheel yourself with my step by step instructions. But this is not necessary because I uploaded the latest wheel here.

  1. Run sudo apt install libopenblas-dev libblas-dev m4 cmake cython python3-dev python3-yaml python3-setuptools. This command installs all dependencies of Pytorch.
  2. Change to the folder where you want to download Pytorch. (cd PATH)
  3. Run git clone --recursive https://github.com/pytorch/pytorch.
  4. Run cd pytorch.
  5. Run export USE_CUDA=0;export USE_DISTRIBUTED=0;export USE_MKLDNN=0;export USE_QNNPACK=0;export USE_NNPACK=0;export USE_FFMPEG=1;export USE_OPENCV=1. The last two exports can also be omitted when FFMPEG or OpenCV are not installed. If you want to change the maximum number of build processes, use export MAX_JOBS=YOUR-NUMBER. This command sets the environment variables.
  6. Run python3 setup.py sdist bdist_wheel. This command takes a few hours. (On Raspberry Pi 4 4GB with 2294MHz it take round 3 hours)
  7. Look in the new subfolder "dist" for a file with the extension ".whl". Copy the path and run pip3 install PATH.
  8. You can import Pytorch with import torch.

Install the wheel

If you want to install the wheel, download the files. If the file extension .whl you can install it normal. Otherwise follow the instructions below. It is easiest if you have installed the file-roller package. Double-click on the file with the extension .001. Extract the only .whl file. Copy the path of the extracted file and enter sudo pip3 install [path] in the terminal and press Enter. Now it should be installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.