Postgresql - Could not find any downloads - python

Why this exception generates on apt-get install or on pip :
root#tameen:/home/tameen/Downloads/postgis-2.0.1# pip install postgresql-2.0.1
Collecting postgresql-2.0.1
Could not find any downloads that satisfy the requirement postgresql-2.0.1
No distributions at all found for postgresql-2.0.1
sudo apt-get install postgresql
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:
postgresql : Depends: postgresql-9.4 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

PostgreSQL is a database system, not a Python library. pip is for installing Python libraries only. You will need to install this via your system's package manager.
For instance, if you are on Debian or Ubuntu, you would need to do sudo apt-get install postgresql.

Related

cannot install python3-libnvinfer on ubuntu

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.

How to install catkin on a virtual machine Ubuntu 18.04

I think I have indigo...
I followed the instructions: https://wiki.ros.org/catkin#Installing_catkin
Can someone please help me with this? I used a virtualbox to run Ubuntu 18.04. Can catkin work with indigo? I'm lost...
notsotechnical#notsotechnical-VirtualBox:~/build/build$ **sudo apt-get install ros-indigo-catkin**
[sudo] password for notsotechnical:
Reading package lists... Done
Building dependency tree
Reading state information... Done
**E: Unable to locate package ros-indigo-catkin**
notsotechnical#notsotechnical-VirtualBox:~/build/build$ sudo apt-get install cmake python-catkin-pkg python-empy python-nose python-setuptools libgtest-dev build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
python-setuptools is already the newest version (39.0.1-2).
libgtest-dev is already the newest version (1.8.0-6).
python-empy is already the newest version (3.3.2-1build1).
python-nose is already the newest version (1.3.7-3).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
python-catkin-pkg is already the newest version (0.4.13-100).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-catkin-pkg : Depends: python-catkin-pkg-modules (>= 0.4.13) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
notsotechnical#notsotechnical-VirtualBox:~/build/build$ **apt --fix-broken install**
**E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?**
notsotechnical#notsotechnical-VirtualBox:~/build/build$
If you still have the problem:
Ubuntu 18.04 runs with ros melodic, not indigo. SO follow your link, but on the very top you need to switch to melodic instead of indigo.

How to fix "E: Package 'libatlas-dev' has no installation candidate" While installing Scipy for Scikit learn?

how do i fix this problem i gave
sudo apt-get install python-setuptools python-scipy libatlas-dev libatlas3-base
to install scipy for installing scikit learn and got an error like this
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libatlas-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libatlas-base-dev:i386 libatlas-base-dev
E: Package 'libatlas-dev' has no installation candidate
I have tried updating but nothing seems to work.
I tried to install libatals-dev on my raspberry pi and my pi told me this:
Reading package lists... Done Building dependency tree Reading
state information... Done
Package libatlas-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libatlas-base-dev
E: Package libatlas-dev has no installation candidate
So please try sudo apt-get install libatlas-base-dev instead.
You may have been misdirected by Google into following instructions on a page such as https://scikit-learn.org/0.16/install.html. If the goal is to install scikit-learn you may be better off with just pip3 install -U scikit-learn according to https://scikit-learn.org/stable/install.html. That's what I did on Ubuntu 20.04.1 LTS.

pip could not install asyncmongo

I'm very new in Python and need to install asyncmongo package for my environment. But when I
excuting pip install asyncmongo it fails with the following error.
C:\git\project>pip install asyncmongo
Downloading/unpacking asyncmongo
Could not find any downloads that satisfy the requirement asyncmongo
Some externally hosted files were ignored (use --allow-external asyncmongo to allow).
Cleaning up...
No distributions at all found for asyncmongo
Storing debug log for failure in C:\Users\Name\pip\pip.log
What I'm doing wrong?
I had the same issue just now (guessing that the library you're trying to install doesn't have a distribution up on the repository which pip is using). Instead, install the easy_install utility and do:
easy_install asyncmongo
Also, as a side note, I'd recommend using virtualenv and virtualenvwrapper which comes with pip/easy_install.
They segregate your python installs and it is basically like using a python install for every project you work on instead of sharing it globally. It includes both pip and easy_install which is useful because when I can't find something with pip or if the pip install fails, I'm usually able to find it with easy_install.
I found the solution. The problem was caused because of asyncmongo 1.2.2 sources was hasted on the amazon file server, so in that case pip should be invoked with additional flags (--allow-external packagename and --allow-unverified packagename) so to install it properly follwing command should be executed:
pip install --allow-external asyncmongo --allow-unverified asyncmongo asyncmongo
You are on Windows platform and pip is not as great for Windows as for Linux or Mac. easy_install has some some advantages on Windows, such as installing a precompiled .exe binary.
On a different note, you may consider using motor instead of asyncmongo. It is newer and looks more elegant.

easy_install and pip giving errors when trying to install numpy

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.

Categories

Resources