Error installing pyserial in Ubuntu - opencv-python

I was trying to install pyserial for linking ardunio with my opencv-python. When i was trying to install pyserial from the terminal,it was giving me errors..
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pyserial-3.3.dist-info'
Any suggestions?

Related

Issue - Install ibm_db==3.1.0

I try to install ibm_db in Jupyter notebook but with an error message. May i know how can i fix that?
!pip install --force-reinstall ibm_db==3.1.0 ibm_db_sa==0.3.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sqlalchemy-ibmi 0.9.2 requires sqlalchemy<1.4,>=1.3.0, but you have sqlalchemy 1.4.46 which is incompatible.
if I install pip install --force-reinstall ibm_db_sa==0.3.3
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Users\r9you\AppData\Local\Programs\Python\Python310\Lib\site-packages\~reenlet\_greenlet.cp310-win_amd64.pyd'
Consider using the --user option or check the permissions.

How to fix `mailtutils` attempting to install a Postgresql version that does not exist?

I'm attempting to install mailutils on Ubuntu 22.04 inside a Docker container, but receiving the following error:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/postgresql-14/libpq5_14.4-0ubuntu0.22.04.1_amd64.deb 404 Not Found [IP: 185.125.190.36 80]
I've had a look at the Ubuntu archive, and as sure as the message claims, Postgresql 14.4 has been replaced with 14.5 (most likely due to a security vulnerability which has been fixed). I've also tried --fix-missing, and it still cannot be resolved.
How do I go about resolving this?

from scapy.all import * FileNotFoundError: [WinError 2]

I have installed the scapy module in Python3 on Windows 8.1 by using the command pip3 install scapy-python3, and I can load the scapy module successfully.
But when i use the command from scapy.all import * error, it gives a error:
FileNotFoundError: [WinError 2] The system can not find the file specified.
I really don't know how to deal with it. The flowing below is the specific about the accident:
I cannot reproduce your bug with the latest development version.
Upgrading Scapy to the current development version from the official repository should fix your problem.

iPython local install error

I am trying to install iPython and iPython notebook as a local install:
pip install --install-option="--prefix=$BINF" ipython[notebook]
and receive the error
re: jinja2 installing in /usr/local/lib:
Exception:
Traceback (most recent call last):
...
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/jinja2'
Can I direct pip to install this in $BINF/lib?
I do not have sudo, but I do have admin on the BINF tree.

Centos repo Change from 6.4 to 6

Centos 6.4 receives no updates
I have a centos VM and i have to install perl
The mirror no longer exists
how to change the Centos version link in the yum Repo
from 6.4 to 6
http://mirrors.vonline.vn/centos/6.4/updates/x86_64/Packages/dbus-glib-0.86-6.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Is this ok [y/N]: y
Downloading Packages:
http://centos-hn.viettelidc.com.vn/6.4/updates/x86_64/Packages/perl-5.10.1-131.el6_4.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
You could install Perl directly like this;
For a 64-bit processor:
rpm -Uhv http://mirror.centos.org/centos/6/os/x86_64/Packages/perl-5.10.1-136.el6.x86_64.rpm
For a 32-bit processor:
rpm -Uhv http://mirror.centos.org/centos/6/os/i386/Packages/perl-5.10.1-136.el6.i686.rpm
After that you could have a look at the URL's in your repository;
/etc/yum.repos.d/CentOS-Base.repo