I tried to install pyhton3-argcomplete on my centos machine.
I run yum command and get below error message ;
sudo yum install -y pyhton3-argcomplete
No match for argument: pyhton3-argcomplete
anyone have same issue?
Checked my available repositories to see if the package is available :
yum search *argcomplete*
You seem to have a typo in the package name, instead of pyhton3 it should be python3.
Try this:
sudo yum install -y python3-argcomplete
Related
I have python 3.5.3
I m trying to upgrade to python 3.7.2
I used the cammand bellow :
sudo apt install python3.7.2
I got the following message
E: Unable to locate package python3.7.2
E: Couldn't find any package by glob 'python3.7.2'
E: Couldn't find any package by regex 'python3.7.2'
I used the command below to fix it
sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python3.7.2
and I till have the same problem
I found this in the Internet by searching your first error message.
Hello,
Have you tried running python3.7 --version instead of only python3?
If this still does not work what I would suggest is following these steps here:
Run a quick update and install the following package:
apt update
sudo apt install software-properties-common
Add the following to your source list:
sudo add-apt-repository ppa:deadsnakes/ppa
Note: In case that you get prompted just press Enter to continue
After that install Python 3.7 with the command that you’ve specified in your question:
sudo apt install python3.7
Then again test this with:
python3.7 --version
Hope that this helps!
https://www.digitalocean.com/community/questions/unable-to-install-pyhton-3-7-version-on-ubuntu-16-04-error-couldn-t-find-any-package-by-regex-python3-7
I'm trying to install Superset (Airbnb Data visualizer) on an equivalent of "PuTTY" installed by the firm I'm working for on a Windows computer, following this tutorial : http://airbnb.io/superset/installation.html
After the first lines (sudo yum install ...) I tried this line :
pip install virtualenv
And I had:
"bash: pip: command not found".
I tried the following :
sudo easy_install pip
sudo yum install python-pip
yum install -y python-pip # after a yum -y update
It still doesn't work... I have errors everytime, particularly this one :
Loaded plugins: rhnplugin, search-disabled-repos This system is
receiving updates from RHN Classic or Red Hat Satellite. No package
python-pip available. Error: Nothing to do
Then I found solutions on the web, I tried this :
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
But I have an error again (Name or service not known).
I absolutely do not know what to do. Do you have an idea to solve this problem ?
Thank you for your help.
Edit : I found more détails : I use a RedHat Linux 7.2-11
I would try and install pip using the first option from the Pip page.
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
I have ran the following commadns to install the epel-release:
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm
To verify this I ran
yum repolist
that results the output:
repolist 0
it should be show some repo here,
what I am trying to install is "pip" command on RedHat, first enable EPEL repository, and then run:
sudo yum install python-pip
Refer me the solution to install pip or to resolve the problem that described above.
I had to had the epel in a CentOS architecture (more precisely in a XenServer) and I used different flags from you.
Try this (I changed your flags to "-Uvh"):
rpm -Uvh epel-release-5-4.noarch.rpm
I messed up big time and I removed the python package on a CentOS server. After then I realized yum was dependant on python and I could no longer use yum. I think I need to reinstall python to fix the problem. How can I do this without using yum?
I tried:
sudo wget
http://mirror.centos.org/centos/6/os/x86_64/Packages/python-2.6.6-51.el6.x86_64.rpm
then
sudo rpm -ivh python-2.6.6-51.el6.x86_64.rpm
but I'm getting the error:
error: Failed dependencies: python-libs(x86-64) = 2.6.6-51.el6 is
needed by python-2.6.6-51.el6.x86_64 python < 2.6.6-52.el6 conflicts
with python-devel-2.6.6-52.el6.x86_64
Please any suggestion?
I think you might need to download python-2.6.6-52.el6.x86_64.rpm instead.
rpm link is not working any more...
you can use the command in centOS for sudo user like:
sudo yum install http://mirror.centos.org/centos/6/os/x86_64/Packages/python-2.6.6-51.el6.x86_64.rpm
without dependencies:
sudo yum install --nodeps http://mirror.centos.org/centos/6/os/x86_64/Packages/python-2.6.6-51.el6.x86_64.rpm
You do not need to download it.
Try installing with --nodeps parameter.
# sudo rpm --nodeps -ivh python-2.6.6-51.el6.x86_64.rpm
I'm compiling psycopg2 and get the following error:
Python.h: No such file or directory
How to compile it, Ubuntu12 x64.
Python 2:
sudo apt-get install python-dev
Python 3:
sudo apt-get install python3-dev
This is a dependency issue.
I resolved this issue on Ubuntu using apt-get. Substitute it with a package manager appropriate to your system.
For any current Python version:
sudo apt-get install python-dev
For alternative Python version:
sudo apt-get install python<version>-dev
For example 3.5 as alternative:
sudo apt-get install python3.5-dev
if you take a look at PostgreSQL's faq page ( http://initd.org/psycopg/docs/faq.html ) you'll see that they recommend installing pythons development package, which is usually called python-dev. You can install via
sudo apt-get install python-dev
As mentioned in psycopg documentation http://initd.org/psycopg/docs/install.html
Psycopg is a C wrapper around the libpq PostgreSQL client library. To install it from sources you will need:
C compiler
Python header files
They are usually installed in a package such as python-dev a message error such: Python.h: no such file or directory indicate that you missed mentioned python headers.
How you can fix it? First of all you need check which python version installed in your virtual envitonment or in system itself if you didnt use virtual environment. You can check your python version by:
python --version
After it you should install the same python-dev version which installed on your virtual env or system. For example if you use python3.7 you should install
apt-get install python3.7-dev
Hope my answer will help anyone
Based on the python version your your pipenv file requires, you need to install the corresponding dev file.
I was getting this error and my default python version was 3.8 but the pipenv file was requiring the Python3.9 version. So I installed the python3.9 dev.
$ sudo apt install python3.9-dev
While all answers here are correct, they won't work correctly anyway:
- sudo apt-get install python3-dev
- sudo apt-get install python3.5-dev
- etc ..
won't apply when you are using python3.8, python3.9 or future versions
I recommend using a deterministic way instead :
sudo apt install python3-all-dev
On Fedora, Redhat or centos
Python 2:
sudo yum install python-devel
Python 3:
sudo yum install python3-devel
if none of the above-suggested answers is not working, try this it's worked for me.
sudo apt-get install libpq-dev