I can't install any torch version on rasp 4 armv7l. i tried to build it from whl, but that does not work either.(maybe someone knows a working source?)
Any help is appreciated!
i have tried pip, conda, conda-forge, building it from scratch, but none seems to work. I could not find a tutorial on the web either.
I recently had to install torch on my rpi 4 armv7l. There are whl files you can find online but it depends on which version of torch you like to install.
For a step-by-step guide on how to install once you have the whl file, you can check out: https://medium.com/secure-and-private-ai-writing-challenge/a-step-by-step-guide-to-installing-pytorch-in-raspberry-pi-a1491bb80531
For the whl files you can check out these GitHub pages:
https://github.com/Kashu7100/pytorch-armv7l
https://github.com/nmilosev/pytorch-arm-builds
Related
I am trying to install opencv on my laptop but I keep getting ImportError: DLL load failed while importing cv2: The specified module could not be found.
I tried installing installing with conda install -c conda-forge opencv in an anaconda env.
But I also get the same result if I use my normal python 3.10 interpreter with opencv-python and opencv-contrib-python.
I also tried to compile the module myself but cv2.cp310-win_amd64 gives me the same error as well...
Isnt there just an prebuild binary I can use? or should I look for an different ML module?
Yesterday when I came home I tried installing opencv-python on my personal computer. And it worked instantly. I have an GTX 1070 in that pc and an RTX A1000 in the work laptop I need opencv on. So I tought that the cuda cores might not be supported or something.
I found this tutorial https://machinelearningprojects.net/build-opencv-with-cuda-and-cudnn/
But after installing the Nvidia SDK, cudnn and compiling opencv from source I still get the same error.
Even with appending the opencv output folder and the cuda sdk bin folder to python's dll_path.
Disabling BUILD_SHARED_LIBS as suggested in here also does nothing....
https://forum.opencv.org/t/opencv-w-cuda-build-seems-successful-but-import-cv2-fails/11328/3
This happened to me just this morning, and I fixed it by installing opencv using pip. First, I removed conda's opencv installation. In the environment where it is installed type
conda remove opencv
Once it is removed, type
pip install opencv-python
Hope it helps
Using python 3.6 with conda install -c conda-forge opencv=3.2.0 as described here OpenCV-Python ImportError: DLL load failed: The specified module could not be found solved the issue on my laptop with an RTX A1000. Weird opencv works with python 3.10 on my desktop with an GTX 1070
Similar to:
whl is not a supported wheel on this platform
xgboost pckage for python 3.6
But both didn't work for me.
I need to install xgboost on machine without internet.
I downloaded xgboost-0.81-py2.py3-none-win_amd64.whl file from https://pypi.org/project/xgboost/#files
My environment:
Windows X64
Python 3.7.0
pip 19.0.1
I got an error:
Same with "xgboost-0.81-cp37-cp37m-win_amd64.whl" from this website
I tried in similar way install "scikit_learn-0.20.2-cp37-cp37m-win32.whl" and everything went well.
I also tried
pip download xgboost -d "C:\USers...\XGBoost"
tar cvfz xgboost.tgz XGBoost
but I have error:
"tar" is not recognized as an internal or external command
I tried …win32.whl and everything went well.
You have 32-bit Python. With it you cannot install 64-bit wheel (amd64.whl). Download 32-bit wheel.
Or replace your Python with 64-bit Python and reinstall all packages.
You can use Anaconda Powershell Prompt(menu->Anaconda->Anaconda Powershell Prompt) to install xgboost
command:pip install xgboost
hope it helps you
I HAVE PYTHON 3.6.6 INSTALLED IN MY WINDOWS 7 PLATFORM BUT WHEN I TRIED TO INSTALL OPENCV PACKAGE IT SAYS REQUIREMENT ALREADY SATISFIED AND IF I TRY TO IMPORT CV2 IT SAYS NO MODULE .I'VE TRIED ALL POSSIBLE METHODS ON INTERNET WHAT SHOULD I DO
i tried to download opencv exe from sourceforge and copying cv2.pyd file and then pasting it in site packages
i tried pip install opencv_python-4.0.1-cp37-cp37m-win_amd64.whl
but nothing works
The error message says that you are asking PIP install a version of cv2 for 64-bit Python 2.7, and that installation is failing. So the installation is not happening because it's the wrong version. That might be because you don't have Python 2.7, or because you have a 32-bit processor, or both. Navigate to Python36\Scripts and issue the command pip install opencv_python. Then pip will find the appropriate file to download, and install it.
So I've been working with the Movidius neural network api, and it automatically installs several packages on the raspberry pi when you run the installer, including opencv. However, when I try to
import cv2
I get the error
from .cv2 import *
ImportError: libQtGui.so.4: cannot open shared object file: No such file or directory
does anyone know how to fix this?
Assuming you are using Ubuntu mate or Raspbian stretch OS with python3.
If you are still facing issue with importing cv2,
Try to install the following.
pip3 install opencv-python
sudo apt install libqtgui4
sudo apt install libqt4-test
This will pull all the dependencies and you can import cv2 without any issues.
You might have done some system changes which led to the path mismatch of libQtGui.
there are steps to solve this problem but it will take more time than installing OpenCV again with the configured libQtGui path. So I suggest you install your open cv version again.
below is the link to install OpenCV from scratch it hardly takes 20 minutes.
https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/
I have been successfully using PyCharm for my python work.All the packages can be easily installed by going to settings and then project interpreter but tensorflow installation is showing error.In suggestions it asked me to upgrade pip module.But even after that it shows error with following message:
" Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow"
I am able to install all other packages but error is with tensorflow only.I am using windows.
Please run pip install tensorflow in command line and post the output here. Tensorflow can be installed on Windows but the process is often annoying.
You could also tried anaconda. It is has very nice UI and you could switch between different version.