kashu7100 / pytorch-armv7l Goto Github PK
View Code? Open in Web Editor NEWPyTorch 1.7.0 and torchvision 0.8.0 builds for RaspberryPi 4 (32bit OS)
PyTorch 1.7.0 and torchvision 0.8.0 builds for RaspberryPi 4 (32bit OS)
I get this error - any fixes?
import torch
File "/home/pi/.local/lib/python3.7/site-packages/torch/init.py", line 524, in
from .functional import *
File "/home/pi/.local/lib/python3.7/site-packages/torch/functional.py", line 6, in
import torch.nn.functional as F
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/init.py", line 1, in
from .modules import *
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/modules/init.py", line 2, in
from .linear import Identity, Linear, Bilinear
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/modules/linear.py", line 6, in
from .. import functional as F
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/functional.py", line 12, in
from .._jit_internal import boolean_dispatch, List, Optional, _overload, Tuple
File "/home/pi/.local/lib/python3.7/site-packages/torch/_jit_internal.py", line 27, in
from typing_extensions import Final
ModuleNotFoundError: No module named 'typing_extensions'
While trying to get the dependencies, I keep encountering this error.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package cython is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'cython' has no installation candidate
I manually installed the torch wheel on my raspberry py, and everything seemed to work fine (after like a week of trying to install it without errors). When I imported the torch library into python (with the import torch
command) i got the following error :
ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
I tried to look for the file in question but as th error says, it doesn't exist. Do you happen to know what this file is used for and how I could either get it back or make it work without ?
Thanks very much for the repo,
I have tried to install torch whl and I get the following error:
pip3 install torch-1.7.0a0-cp37-cp37m-linux_armv7l.whl
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 338, in run
resolver.resolve(requirement_set)
File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
self.require_hashes
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 283, in prepare_linked_requirement
progress_bar=self.progress_bar
File "/usr/lib/python3/dist-packages/pip/_internal/download.py", line 823, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File "/usr/lib/python3/dist-packages/pip/_internal/download.py", line 728, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "/usr/lib/python3/dist-packages/pip/_internal/utils/misc.py", line 600, in unpack_file
flatten=not filename.endswith('.whl')
File "/usr/lib/python3/dist-packages/pip/_internal/utils/misc.py", line 485, in unzip_file
zip = zipfile.ZipFile(zipfp, allowZip64=True)
File "/usr/lib/python3.7/zipfile.py", line 1222, in __init__
self._RealGetContents()
File "/usr/lib/python3.7/zipfile.py", line 1289, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
Do you know how to solve this problem?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.