When I use the below command to install pip3 for python 3.5.1:
sudo yum -y install python35u-pip
Then I get the following issue:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.usonyx.net
* extras: centos.usonyx.net
* updates: centos.usonyx.net
No package python35u-pip available.
Error: Nothing to do
I have used centos 7 and python 3.5.1 installed. I have googled so much but when didn't get any response from it then I came here for the suggestions and help.
Seems that you have a typing error, the right command should be
sudo yum -y install python35-pip
Please note the difference python35u-pip.
If this will raise other errors, try to follow this procedure:
$ sudo yum install python35-setuptools
$ sudo easy_install-3.5 pip
It needs to have the EPEL repository enabled.
Let me know.
Related
I need to install jdk 17 on centos7. When I try the yum install, I get the below message
sudo yum install -y java-17-amazon-corretto-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fasttrack: mirror.centos.org
No package java-17-amazon-corretto-devel available.
Error: Nothing to do
I tried to follow https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/generic-linux-install.html(Using yum section). When I run the command to import corretto key, it times out.
I tried the yum install -y java-17-openjdk-devel, i get the same error
yum install -y java-17-openjdk-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fasttrack: mirror.centos.org
No package java-17-openjdk-devel available.
Error: Nothing to do
Does anyone know the solution?
I had the same error and had a look here:
https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/generic-linux-install.html
You need to run the following before installing:
sudo rpm --import https://yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
First, I'm so sorry to my english, not perfect.
I was faced with problem while testing a .sh file.
That because of error Nothing to do..
That phrase is the phrase that appeared when executing yum -y install perl-CPAN, but before that, yum -y groupinstall 'Development Tools' worked normally.
And It was successful when I typed it directly instead of yum -y install perl-CPAN.
I tried solutions like below but the result was the same.
Edit and Install
# cd /etc/yum.repos.d
# vi CentOS-Base.repo
Enable =0 -> 1
# yum install epel-release
# ./setup.sh
ps : Many people have recommended this solutions.
Check
check already install
check the correct install repository
Thanks to read my situation, and have a nice day.
Although I do not know what setup.sh you are refering to is, yum says Nothing to do. if you have the package already installed. To check if you have the package installed, you can use rpm. If the package is not installed, it will give you:
# rpm -q perl-CPAN
package perl-CPAN is not installed
Then if you install the package, e.g. with:
# yum -y install perl-CPAN
[...]
Complete!
Then you can verify package is installed:
# rpm -q perl-CPAN
perl-CPAN-2.28-5.fc33.noarch
Note I have tested on Fedora 33, but there should not be much difference to CentOS in this regards.
everyone. I'm try to used Dask with Distributed + HDFS for processing some files. when I installed the distributed try to install the HDFS3 plugins, the error was :
Can not find the shared library:libhdfs3.so
My environment is Ubuntu 16 Desktop version. I strict according to bewlo, but still not working. Hope someone can help! Thanks a lot
conda install hdfs3 -c conda-forge
echo "deb https://dl.bintray.com/wangzw/deb trusty contrib" | sudo tee /etc/apt/sources.list.d/bintray-wangzw-deb.list
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install libhdfs3 libhdfs3-dev
pip install hdfs3
If you are not using conda and you are using pip, you can also face this error
Can not find the shared library:libhdfs3.so
To ensure requirements in this page https://github.com/ContinuumIO/libhdfs3-downstream/tree/master/libhdfs3
solved my problem.
There are packages that you should install, if you are installing with pip:
cmake (2.8+) http://www.cmake.org/
boost (tested on 1.53+) http://www.boost.org/
google protobuf http://code.google.com/p/protobuf/
libxml2 http://www.xmlsoft.org/
kerberos http://web.mit.edu/kerberos/
libuuid http://sourceforge.net/projects/libuuid/
libgsasl http://www.gnu.org/software/gsasl/ (need https://github.com/bdrosen96/libgsasl)
openssl https://www.openssl.org/
P.S.: OS: Centos7
Since no one answers this question and I figure out the solution by myself , at least it works for me.
conda install libhdfs3
pip install libhdfs3
conda install -c clinicalgraphics libgcrypt11
conda install libprotobuf=2.5
conda update libhdfs3
if still not work try to update.
CentOS 7 EPEL now includes Python 3.4: yum install python34
However, when I try that, even though Python 3.4 installs successfully, it doesn't appear to install pip. Which is weird, because pip should be included by default with Python 3.4. which pip3 doesn't find anything, nor does which pip.
How do I access pip from the Python 3.4 package in CentOS 7 EPEL release?
The easiest way I've found to install pip3 (for python3.x packages) on CentOS 7 is:
$ sudo yum install python34-setuptools
$ sudo easy_install-3.4 pip
You'll need to have the EPEL repository enabled before hand, of course.
You should now be able to run commands like the following to install packages for python3.x:
$ pip3 install foo
curl https://bootstrap.pypa.io/get-pip.py | python3.4
Or if you don't have curl for some reason:
wget https://bootstrap.pypa.io/get-pip.py
python3.4 get-pip.py
After this you should be able to run
$ pip3
The CentOS 7 yum package for python34 does include the ensurepip module, but for some reason is missing the setuptools and pip files that should be a part of that module. To fix, download the latest wheels from PyPI into the module's _bundled directory (/lib64/python3.4/ensurepip/_bundled/):
setuptools-18.4-py2.py3-none-any.whl
pip-7.1.2-py2.py3-none-any.whl
then edit __init__.py to match the downloaded versions:
_SETUPTOOLS_VERSION = "18.4"
_PIP_VERSION = "7.1.2"
after which python3.4 -m ensurepip works as intended. Ensurepip is invoked automatically every time you create a virtual environment, for example:
pyvenv-3.4 py3
source py3/bin/activate
Hopefully RH will fix the broken Python3.4 yum package so that manual patching isn't needed.
Update: The python34 bug mentioned below has finally been fixed. It is a perfectly fine choice now.
Rather than using broken EPEL python34 packages, you can enable the IUS repo and have it work properly.
pip inside virtual environments
The main python34u and python35u IUS packages include the pyvenv tool (/usr/bin/pyvenv-3.4 or /usr/bin/pyvenv-3.5) that includes bundled wheels of pip and setuptools for bootstrapping virtual environments.
global pip
The python34u-pip and python35u-pip IUS packages include /usr/bin/pip3.4 and /usr/bin/pip3.5 respectively. These work just fine to install packages to the system site-packages directory.
yum install python34-pip
pip3.4 install foo
You will likely need the EPEL repositories installed:
yum install -y epel-release
Update 2019
I tried easy_install at first but it doesn't install packages in a clean and intuitive way. Also when it comes time to remove packages it left a lot of artifacts that needed to be cleaned up.
sudo yum install epel-release
sudo yum install python34-pip
pip install package
Was the solution that worked for me, it installs "pip3" as pip on the system. It also uses standard rpm structure so it clean in its removal. I am not sure what process you would need to take if you want both python2 and python3 package manager on your system.
Below are the steps I followed to install python34 and pip
yum update -y
yum -y install yum-utils
yum -y groupinstall development
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
yum makecache
yum -y install python34u python34u-pip
python3.6 -v
echo "alias python=/usr/bin/python3.4" >> ~/.bash_profile
source ~/.bash_profile
pip3 install --upgrade pip
# if yum install python34u-pip doesnt work, try
curl https://bootstrap.pypa.io/get-pip.py | python
There is a easy way of doing this by just using easy_install (A Setuptools to package python librarie).
Assumption.
Before doing this check whether you have python installed into your Centos machine (at least 2.x).
Steps to install pip.
So lets do install easy_install,
sudo yum install python-setuptools python-setuptools-devel
Now lets do pip with easy_install,
sudo easy_install pip
That's Great. Now you have pip :)
Figure out what version of python3 you have installed:
yum search pip
and then install the best match. Use reqoquery to find name of resulting pip3.e.g
repoquery -l python36u-pip
tells me to use pip3.6 instead of pip3
On CentOS 7, the pip version is pip3.4 and is located here:
/usr/local/bin/pip3.4
I have setup an instance on aws. Now I want to start scrapyd on a particular port. according to documentation
aptitude install scrapyd-X.YY
but aptitude is not found. I have tried to installing aptitude using yum but there is no match found (may be it only works with apt-get, but I have yum ap-get is also missing)
can any one please help me that is there any other way to do this ??
If you first install pip:
sudo yum install python-pip
you can use pip to install scrapyd like so
pip install scrapyd
source: http://scrapyd.readthedocs.org/en/latest/install.html
You are using an yum based OS, not an apt based OS. Forget any commands that involve apt or a variation thereof.
Skip the steps you've already done:
yum install python
yum install python-pip
yum install libxml2-python
pip install Scrapy
As for libxml2-python, keep in mind that "versions prior to 2.6.28 are known to have problems parsing certain malformed HTML, and have also been reported to contain leaks, so 2.6.28 or above is highly recommended"