I followed these instructions to install snips-nlu on a Raspberry Pi:
Rust Installation: curl https://sh.rustup.rs -sSf | sh
Setuptools-rust: sudo python3 -m pip install setuptools-rust
NLU Installation: sudo python3 -m pip install snips-nlu
My console log:
Building wheels for collected packages: snips-nlu-utils, snips-nlu-parsers
.
.
. error: Can not find Rust compiler
I tried with different Python versions.
I found setuptools-rust, but it did not help, because I don't understand what I should do with it.
How can I fix this Rust compiler error message and install snips-nlu on a Raspberry Pi?
After install Rust compiler:
curl https://sh.rustup.rs -sSf | sh
You can try a restart and then continue the installation of NLU.
Restart is to ensure that path of Rust is being recorded in PATH.
Related
after installing tflite_runtime on raspberry pi using the following commands
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install python3-tflite-runtime
and trying to import tflite .. I got "Illegal instruction"
Error screenshot
The prebuilt tflite_runtime package set from the above site does not cover armv6 architecture yet.
Alternatively, you can choose some other options.
(1) Install the TensorFlow pip package.
TensorFlow Lite features are a part of TensorFlow package and the prebuilt TensorFlow pip packages support armv6. See https://www.tensorflow.org/install/pip
(2) Build your own tflite_runtime through Bazel or CMake.
If there is a need for installing the tflite_runtime only, it is possible to build the tflite_runtime by yourself. The following document describes the differences between Bazel and CMake and how to build the tflite_runtime through them.
https://www.tensorflow.org/lite/guide/build_arm
I try to install the pythonnet library on linux, but I can have trouble with nuget/mono.
I tryed to run the following (Install pythonnet on Ubuntu 18.04, Python 3.6.7 64-bit, Mono 5.16 fails):
sudo apt update
sudo apt-get install clang
sudo apt install nuget
git config --global http.proxy http://my.proxy.address:port
/usr/bin/python3 -m pip install -U pycparser --user
/usr/bin/python3 -m pip install -U pythonnet --user
However, this results in the following error:
mono tools/nuget/nuget.exe update -self' returned non-zero exit status 1.
When I clone the repository from github and just run mono tools/nuget/nuget.exe update -self, I get the following error:
Checking for updates from https://www.nuget.org/api/v2/. Invalid URI: Invalid port specified.
I came across this link: https://github.com/NuGet/Home/issues/2880, but most of the advice is Windows focussed. Does anyone know how to fix this?
Thank you!
I had the same problem and needed to install mono first:
sudo apt-get install mono-complete
So i am aiming to install Ludwig for experimentation but i didn't found any solution on the internet to this issue enter image description here
screenshot of the error message
i am using windows subsytem for linux (debian)
Your python version is probably unsupported by tensorflow 1.15.3. I ran into the same issue trying to install with python 3.8.
https://github.com/tensorflow/tensorflow/issues/34302
When I compiled Ludwig from GitHub source, there were a lot of dependencies to patch. I experienced the same error message and I gave up solving it.
I retried with clean installation from the very beginning, I managed to install Ludwig successfully on Google Cloud - Debian 9 VM.
Now I redo the steps on Oracle Cloud - Ubuntu 20.04 VM.
Steps:
Ensure the following dependencies are ready, which I consolidate from various sources.
$ sudo apt update
$ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev curl libbz2-dev lzma liblzma-dev python3-tk
Clean install Python 3.6. I choose to use older Python 3.6 to execute Ludwig, because Ludwig is using the old Tensorflow 1.15.3. I reserve Python 3.7 and 3.8 environment for other newer Python projects, for example Tensorflow 2.
# Simply use a temporary working folder.
$ cd /tmp
# Download the newest Python3.6 source.
$ curl -O https://www.python.org/ftp/python/3.6.12/Python-3.6.12.tgz
$ tar -xzvf Python-3.6.12.tgz
$ cd Python-3.6.12
# --prefix=/usr/local ensures the newly installed Python3.6 does not mess up with the default Python executables in the OS. This is specially warned in Google Cloud.
$ ./configure --prefix=/usr/local --enable-optimizations
$ sudo make altinstall
$ python3.6 --version
Python 3.6.12
# Upgrade pip and virtualenv
$ sudo python3.6 -m pip install --upgrade pip
$ sudo python3.6 -m pip install --upgrade virtualenv
Prepare the virtual environment for Ludwig.
Reference https://ludwig-ai.github.io/ludwig-docs/getting_started/#installation.
# Go back to home.
$ cd
# Create a Working directory.
$ mkdir Works
$ cd Works
# Initialize a virtual environment with Python3.6
$ virtualenv -p python3.6 ludwig
$ source ludwig/bin/activate
# Install Ludwig
$ pip install ludwig
You can see every dependencies are taken care of and Ludwig is ready to use.
$ pip list
Package Version
-------------------- -------
... ...
ludwig 0.2.2.8
...
tensorflow 1.15.3
...
# Execute Ludwig
$ ludwig
i have try to install pyscard in python 3.5, but always getting error
error install pyscard
anyone can helo me?
i found my answer in here:
http://raspberrypi4u.blogspot.com/2018/01/raspberry-pi-smartcard-reader-thai-id.html
an as a sample code is here:
sudo apt-get install pcscd git python-setuptools swig gcc libpcsclite-dev python-dev
git clone https://github.com/LudovicRousseau/pyscard.git
cd pyscard
sudo python setup.py build_ext install
sudo reboot
I'm trying to install GDAL to use with Python 3 on an AWS EC2 Amazon2 machine (RHEL7).
Following the instructions on this page: Install GDAL on Python 2.7 on a Amazon Linux virtual server I managed to get it working for python 2.7 ("import gdal from osgeo" works).
However, I need it to work for python3 installed on my machine. I tried to adjust the instructions accordingly, and got to this set of commands:
sudo yum-config-manager --enable epel
sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel gdal-devel gdal-python python3-devel
sudo yum -y update
cd /tmp
curl -L http://download.osgeo.org/gdal/2.4.0/gdal-2.4.0.tar.gz | tar zxf -
cd gdal-2.4.0/
./configure --prefix=/usr/local --with-python
sudo make -j4
sudo make install
python3 -m pip install numpy --user
sudo -H pip3 install --upgrade pip
CPLUS_INCLUDE_PATH=/usr/include/gdal
C_INCLUDE_PATH=/usr/include/gdal
sudo python3 -m easy_install GDAL -d /usr/lib/python3.7/site-packages --include-dirs=/usr/include/gdal
when I run the last command, the installation tries to run but fails with:
"error: command 'gcc' failed with exit status 1".
There are many errors before that, such as:
/usr/local/include/cpl_vsi_error.h:58:24: error: ‘CPL_FORMAT_STRING’ has not been declared
CPL_FORMAT_STRING(const char *fmt), ... )
^~~~~~~~~~~~~~~~~
In file included from extensions/gdal_wrap.cpp:3173:0:
From what I gather, the gcc can't find the GDAL headers, but it is specified in the command and I also did the including commands above:
CPLUS_INCLUDE_PATH=/usr/include/gdal
C_INCLUDE_PATH=/usr/include/gdal
Any ideas will be helpful!