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
Related
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
I'm currently trying to install Flask for testing a simple web page.
Unfortunately i got the following message:
Command 'virtualenv' not found, but can be installed with:
sudo apt install python3-virtualenv
When i do it, i got :
Unable to locate package python3-virtualenv
I check my python version and I'm on Python 3.10.4
Whent i try sudo apt-get update i got:
W: Some index files failed to download. They have been ignored, or old ones used instead.
Whent i try sudo apt-get upgrade i got:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
And when i try sudo apt-get install python3-venv i got :
E: Package 'python3-venv' has no installation candidate
sudo apt install python3-virtualenv works perfectly fine with me.
Alternatively you can install it using pip
pip3 install virtualenv
After completion you can check for which virtualenv to get the path of the location where it has been installed.
It seems there is an error with your ubuntu, You can use this site and fix it and then install the virtual environment : https://www.tecmint.com/some-index-files-failed-to-download.
Had this problem after upgrading to Ubuntu 20.4 and all my problems stemmed from a very old version of Pip that was solved by this lovely command:
curl -sS https://bootstrap.pypa.io/get-pip.py | python3
More information and some alternatives here: pip3 install not working - No module named 'pip._vendor.pkg_resources'
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
$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-pip 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:
python3-pip
both my pip and pip3 are installed in python 3
pip -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)
pip3 -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)
Now i cant install pip
...it shows above error
If you have python(python2) installed you then you can use following command to install pip(for python2).
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
Now you can check for pip2
pip2 --version
I hope these will help you
Just for reference, this problem can occur if you are using Windows Ubuntu Shell and your firewall is blocking your Ubuntu sandbox's traffic. In that case installation resources can not be found and simple apt-update will not work.
In order to test if the firwall causes your problem, you can simply try to ping a website. Also if apt-update will fail with connection refused the firwall is likely your problem. Check this post on how to add your sandbox to the firewall whitelist (Endpoint Protection).
Use these commands first then try again and perform a reinstallation by sudo apt reinstall python3-pip
sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt-get update
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