Hi I want to install python3-libnvinfer and python3-libnvinfer-dev package on Ubuntu20.04 with python3.8
my goal is install TensorRT-8 on ubuntu 20.04
I do the exact installaion steps on nvidia site.
bu when I try this command:
sudo apt-get install python3-libnvinfer
I'll get this Error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-libnvinfer : Depends: python3 (< 3.7) but 3.8.2-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
I also try this with Python3.7 and don't fix...
I Can't Install Python3.10 because seems not compatible with Ubuntu 20.04.
I tried installing TensorRT on Ubuntu 20.04 and I expect it to install correctly with python 3.8 and also with Python3.7
I Try:
sudo apt-get install python3-libnvinfer-dev
and
sudo apt-get install python3-libnvinvfer
but I ran into an Error described above.
Related
sudo apt-get install letsencrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
` letsencrypt : Depends: python-letsencrypt (= 0.4.1-1) but it is not going to be installed
Depends: python:any (>= 2.7~)
E: Unable to correct problems, you have held broken packages.`
Remove the python package from ubuntu
and install python-dev
sudo apt-get remove python
sudo apt-get install python-dev
This should solve the letsencrypt installation
I am running Ubuntu and have both python 2.7 and python 3.5 on my system
I have tweaked the settings so that when I do
python test.py
python3 runs
I wanted to install the module pyperclip in python3..
pip install pyperclip
installed it for python 2
Quick google search suggested to use
pip3 install pyperclip
but I get
pip3 is currently not installed . You can install it by typing
sudo apt install python3-pip
When I run this command I get the following:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1- 2ubuntu0.2 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-setuptools but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What should I do?
It seems like it could be an error in your path. If you installed Python 3.5 it should come with pip, so try doing python -m pip and this should run Python 3.5's pip. To install something, simply use the normal pip commands as you have, for example python -m pip install pyperclip.
Use the aptitude package manager as it will provide you simple suggestion to fix your unmet dependencies problem. Install it via apt:
sudo apt-get install aptitude
Then install pip3 with this command:
sudo aptitude install python3-pip
Then choose the solution suggested to you by aptitude. In one of the suggestions aptitude will suggest you to downgrade from 8.1.1-2ubuntu0.2 to 8.1.1-2. Accepting this suggestion solves the issue. Just make sure the downgrade doesn't cause you other hurdles.
I wanted to install Python 2.7.9 on my Debian Wheezy and I've download the .deb file from Debian site. Unfortunately now I apparently have caused a bug, this is what I have after an apt-get upgrade:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpython2.7 : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
python2.7 : Depends: python2.7-minimal (= 2.7.9-2) but 2.7.3-6+deb7u2 is installed
Depends: libpython2.7-stdlib (= 2.7.9-2) but it is not installable
python2.7-dev : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
E: Unmet dependencies. Try using -f.
If I try an 'apt-get -f install' it asks me to remove more than 2GB from my OS and I don't want this. Any idea?
The right way when working with distributions such as Debian is two work with the official repositories, that is, using apt-get install rather than downloading and installing with dpkg -i.
If you work directly with dpkg, important information that apt needs is missing.
My suggestion for you is this-
1- Undo you changes by using dpkg -P on the package you installed manually
2- Run apt-get update
3- look for the package with apt- apt-cache search python=<version> or without version.
4- If you don't find the wanted version, you can use other official Debian repositories (include them in you apt sources list files)
Fixed this way: as basically the problem was
python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
I've downloaded python version 2.7.3-6+deb7u2 and with a simple dpkg -i I have installed it. The downgrading as been automatic
I am trying to install paver to ubuntu (12.04) with this command
sudo apt-get install python-paver
I got this error message
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-paver
How do I install paver in ubuntu then?
From the documentation:
To install using pip,:
$ pip install -U Paver
To install using easy_install:
$ easy_install -U Paver
I just uploaded a new Debian package to my Launchpad PPA for Ubuntu precise, quantal, raring, saucy, and trusty. I also just uploaded it to the official Debian repos, so it should become part of the official Debian and Ubuntu repos again.
I am running Python 2.7.2 on my machine. I am trying to install numpy with easy_install and pip, but none of them are able to do so. So, when I try:
sudo easy_install-2.7 numpy
I get this error:
"The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available."
Moreover, when I try with pip:
sudo pip-2.7 install numpy
I get this error:
RuntimeError: Broken toolchain: cannot link a simple C program
Is there any fix available for this?
I was facing the same error while installing the requirements for my django project. This worked for me.
Upgrade your setuptools version via pip install --upgrade setuptools and run the command for installing the packages again.
you need a compiler and development tools, along with header files for Python.
you didn't mention your OS.
on my system (Ubuntu), I can install python-dev and the toolchain dependencies with:
$ sudo apt-get install python-dev
then I can pip install numpy.