Skip to main content
Share Your Experience: Take the 2024 Developer Survey
31 votes

ImportError: No module named RPi

First of all, repeat following process sudo apt-get install python-pip pip freeze | grep RPi see what you get after this second command, If you get a valid module for RPi.GPIO or not. And then ...
BetaDev's user avatar
  • 421
10 votes
Accepted

Installing equivalent of unrar package (rar)

You can unpack RAR files with 7-zip. Install that with sudo apt install p7zip p7zip-full Use 7z e my_rar_file to extract the contents. NOTE: 7z can't create rar files.
Dougie's user avatar
  • 5,321
10 votes

Error installing Tensorflow (cannot find libhdfs.so)

Hey I recently figured this out. Here's a YouTube video I made giving the step-by-step: https://youtu.be/GNRg2P8Vqqs Installing Tensorflow requires some extra steps on the Pi's ARM architecture. ...
Sam's user avatar
  • 101
6 votes

ImportError: No module named RPi

If Python RPi module is missing, one can install pip with all dependencies and then install the module using pip or go with the better approach and install the module alone: sudo apt-get install ...
dmnc's user avatar
  • 161
6 votes

On Raspbian, there is no arp program. How do I obtain it?

Good news in case you are looking for the "arp scanning and fingerprinting tool": it's in the Raspbian repository and sudo apt-get update; sudo apt-get install arp-scan should help you. If you don't ...
Fabian's user avatar
  • 1,280
5 votes

ImportError: No module named RPi

For Windows pip install python3-rpi.gpio or pip install RPi.GPIO
Dhiren Biren's user avatar
5 votes
Accepted

Why does sudo apt-get build-dep not work for emacs24?

My system config is Linux raspberrypi 4.4.13+ #894 Mon Jun 13 12:43:26 BST 2016 armv6l GNU/Linux Please follow the below steps and it should get things ready for you. 1. sudo vi /etc/apt/...
Varad A G's user avatar
  • 848
5 votes

Automatically uninstall all non-essential packages

While I fully agree with @goldilocks that being obsessive about the number of installed packages is pointless, there's one useful trick I want to share. All packages in the system basically fall in ...
Dmitry Grigoryev's user avatar
5 votes
Accepted

autoreconf: command not found

apt-cache search only searches for packages by name and description, not what they contain. For your intended use case you probably should use apt-file: $ sudo apt install -y apt-file ... $ sudo apt-...
jdonald's user avatar
  • 2,924
5 votes

Beyond breadboards? Good ways to package simple GPIO-using project?

Is there a premade solderable HAT-like board Yes, tons of these are on sale. A quick search using words like "prototype" and "DIY" revealed there's a board called "ModMyPi", and there are certainly ...
Dmitry Grigoryev's user avatar
4 votes
Accepted

Where are packages installed in Raspbian

To find the paths of files installed by a specific package, you can use dpkg. It is installed by default as part of the base system. dpkg -L postgresql-9.4 Will give you an exhaustive list.
goldilocks's user avatar
  • 59.1k
4 votes

Julia not available in Raspbian?

Julia is now available in the Raspbian repository and can be installed with apt: sudo apt update sudo apt install julia You can verify the install with: julia -v Which should return something like:...
Steve Robillard's user avatar
4 votes
Accepted

Julia not available in Raspbian?

Not really, but you can install it fairly easy: https://juliaberry.github.io/ :) This project gives you an precompiled binary to get started with. wget https://julialang.s3.amazonaws.com/bin/linux/...
nmaas87's user avatar
  • 126
4 votes

installing package error "sudo apt-get install ppp"

Clearly it is showing you that this package is missing dependencies. You need to make sure you update your packages and preferably use a package manager that handles dependencies better. Try this pi@...
user3573987's user avatar
4 votes

tmux doesn't want to be installed

This can actually happen over time with innocent runs of sudo apt update or installing various packages that conflict rather indirectly. When it tells you there's a dependency like libavutil-dev that "...
jdonald's user avatar
  • 2,924
4 votes
Accepted

Is "gedit" a command or text editor?

gedit is a text editor. It is an optional program that can be loaded - typically with the Gnome Desktop - but may not be loaded with every install. It is not a built-in command in the shell, but is ...
bobstro's user avatar
  • 3,978
4 votes
Accepted

Is there any way I can get the latest version of postgresql onto my pi?

In addition to the options presented by Ingo, there is also a PostgreSQL Docker image with ARM support: https://github.com/docker-library/postgres https://hub.docker.com/_/postgres/ This will ...
tttapa's user avatar
  • 986
4 votes
Accepted

upip is not installed

As far as I understood, is upip replaced by mip in the 1.19 release of micropython. https://docs.micropython.org/en/latest/reference/packages.html Therefor you should go with >>> import mip &...
telenaut's user avatar
  • 156
4 votes
Accepted

python-numpy no installation candidate

Try python3-numpy python2 is obsolete and not included in Raspberry Pi OS. If you are following any examples which use python2 try something up to date.
Milliways's user avatar
  • 60.3k
3 votes
Accepted

apt-get hangs at Reading database when installing anything

This is what I would do: Exclude filesystem issues by running fsck and fixing errors if any Run apt-get clean and apt-get autoremove followed by an update/upgrade Backup&remove /var/cache/apt and ...
Dmitry Grigoryev's user avatar
3 votes

Automatically uninstall all non-essential packages

In his answer, goldilocks wrote “‘non-essential’ is hugely subjective”, and this is essentially correct. However, the package maintainers have their own idea of how important a package is, and this ...
Edgar Bonet's user avatar
3 votes
Accepted

Retrieve default sshd_config file

The simplest way is usually to move the existing file to some other place and reinstall the package: mv /etc/ssh/sshd_config /etc/ssh/sshd_config.my apt-get remove openssh-server apt-get install ...
Jakuje's user avatar
  • 516
3 votes

Is "gedit" a command or text editor?

So what exactly is gedit? gedit is a command. it will open a file with the file name entered on the command line. I think you have not installed gedit editor. So,Try this: sudo apt-get upgrade ...
rsp's user avatar
  • 622
3 votes

Is "gedit" a command or text editor?

gedit is a graphical text editor similiar to Windows' notepad.exe. All software in Windows and Linux can be started from the commandline irrespective whether they are commandline applications or not ...
flakeshake's user avatar
  • 6,213
3 votes
Accepted

How can I get a list of user installed packages

All actions performed by apt are logged in /var/log/apt/ but this too has excessive detail and many logs are compressed. The following script produces a list of actions and the dates on which they ...
Milliways's user avatar
  • 60.3k
3 votes
Accepted

How to remove `raspi-copies-and-fills` from Raspbian

Put the sd card into a card reader in Ubuntu system Now the tricky part is finding the device in Ubuntu, it could be /dev/sdb or something like that - one way to determine is to check the output of ...
Jaromanda X's user avatar
  • 2,415
3 votes
Accepted

Problem with public keys, installing libc6

You mixed up Raspbian with Debian repositories and in addition the stable release (stretch) with the unstable release (sid). More mixing is hardly possible. This cannot work. You should edit /etc/apt/...
Ingo's user avatar
  • 42.2k
3 votes

Got compilation error when installing plyvel

Since plyvel 1.0.0, the minimum leveldb version is 1.20. You're using an older version. See the version history for details: https://plyvel.readthedocs.io/en/latest/news.html#plyvel-1-0-0
wouter bolsterlee's user avatar
3 votes

libc 2.29 on buster

If glibc is literally the only library your executable uses, just force the dynamic linker to use the right file with LD_PRELOAD. However, what I expect to happen is that your program uses other ...
Dmitry Grigoryev's user avatar
3 votes

How to install newer cmake on Raspbian?

Set up a swap file / partition and try again. You can get rid of the swap once the compilation is over, but I'd keep it: if you're going to use cmake to build more stuff, you'll likely need it again. ...
Dmitry Grigoryev's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible