I tried to update latest release on youtube-dl but I can't update and while I tried got the error like
"It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update."
Try:
youtube-dl -U
If you used pip to install youtube-dl in the first place then, use:
pip install --upgrade youtube-dl
If that doesn't work, you can always reinstall it using homebrew:
brew install youtube-dl
To install use:
brew install youtube-dl
To upgrade use:
brew upgrade youtube-dl
Related
I want to use this function, and I'm trying to install rubberband using pip as the following: pip install rubberband
But, it raises the following error: "Failed building wheel for rubberband"
And I can't use Python 3.5 in my project. So, how to install rubberband?
P.S. My OS is Windows 10, and I have python 3.6 on it.
The docs you pointed to are the docs for the project pyrubberband, not rubberband. So install it with pip install pyrubberband.
As for rubberband: you probably need a C/C++ compiler to install it.
Upd. pyrubberband is a Python wrapper for rubberband. You need to install it, see https://breakfastquay.com/rubberband/index.html
To make a long story short, this is how I installed the rubberband python package.
apt update
apt-get install libsndfile-dev
apt-get install librubberband-dev
python3 -m pip install numpy (required for rubberband)
Note that the -dev postfix is required to get the header files that are later required for the python rubberband package to be able to compile the package.
Later, pip install rubberband failed on transform is not a member of std.
To solve that, I did the following:
python3 -m pip download rubberband
tar -xf rubberband-1.0.2.tar.gz
edit rubberband-1.0.2/src/numpy.cpp - add #include <algorithm> at the top of the file.
cd rubberband-1.0.2 and then run python3 -m pip install . or better yet python setup.py bdist_wheel --universal to create a whl file to add to your docker dependencies.
If you ran through this and using macOS, brew for everything works
$ brew install rubberband
Works like charm https://formulae.brew.sh/formula/rubberband
Install "rubberband-cli" Package on Ubuntu:
sudo apt-get update -y
sudo apt-get install -y rubberband-cli
I am a newbie to Airflow. i have some trouble to remove Airflow v1.10.3 ,i am using pip3 version 8.1.1 on Ubuntu 16.04.
I already tried to remove pip with sudo apt-get remove python3-pip
and sudo apt-get remove pip3 and all his dependencies.
and tried to remove all libraries related with Python.
But i stil have Airflow and his commands down in terminal.
If you are not able to uninstall with
pip uninstall airflow
Maybe the reason is for the latest versions of Airflow this command will work
pip uninstall apache-airflow
Credits to This Answer.
The command apt-get remove pip doesn't remove pip-installed libraries.To uninstall pip-installed libraries you need to install pip back and then uninstall the libraries using pip:
sudo apt install pip # or pip3
pip uninstall airflow
or
pip3 uninstall airflow
depending on what python version you use.
I tried to follow this tutorial.
This is what I did in the console:
pip3 install --user --upgrade awscli
after that, when I write:
pip3 --version
I'm getting:
pip 9.0.1 from /Users/user/Library/Python/3.4/lib/python/site-packages (python 3.4)
then I wrote:
pip3 install --user --upgrade awscli
this command downloaded awscli and automatically added this:
# Setting PATH for Python 3.4
# The orginal version is saved in .profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
to my .profile
Later on, just to be sure, I wrote:
source ~/.profile
and then when I type:
user$ aws
-bash: aws: command not found
I restarted the terminal with no luck also.
What's the problem here?
Here are the two steps to install AWS cli on mac OSX
FIRST
Offical version
brew install awscli
SECOND
Development version
brew install awscli --HEAD
When "pip3 install" is called with the "--user" option, it installs the aws executable in a user-specific location. This can be one of many possible locations, but the best way to find out where is with this command:
python3 -m site --user-base
On my system, this returned:
/Users/[myusername]/Library/Python/3.6
This directory has a "bin" subdirectory, and that is where the "aws" executable was located.
I figured this out from following:
pip3 install --help
https://docs.python.org/3/library/site.html#module-contents
Simple do these three steps:
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
brew install awscli should work
This is what worked for me, I experienced permission issues and had to create a local Frameworks folder first before running brew install. using macOS High Sierra
sudo mkdir /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks
brew install awscli
To answer the original question about installing using pip:
sudo pip install --upgrade pip
sudo easy_install nose
sudo easy_install tornado
sudo easy_install six
sudo pip install --ignore-installed awscli
worked for me on Mojave
I had similar error, when trying to install awscli. I was following steps mentioned here by amazon [https://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html]
I use anaconda, so when I was using pip3 install awscli --upgrade --user
it installs awscli in /Users/username/.local/lib/python3.6/
So, I used following to update awscli to anaconda-
conda install -c conda-forge awscli
I have used the following commands to install awscli :
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ ./awscli-bundle/install -b ~/bin/aws
check version using : /Users/xxx/bin/aws --version
configure using : /Users/xxx/bin/aws configure
Was facing a similar issue. Resolved it by installing python 3.9 using brew install.
brew install python#3.9
Then reinstall awscli
I followed the below steps and it works for MacOS 10.11
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
Unzip the package.
unzip awscli-bundle.zip
And instead of given command:
'sudo /usr/local/bin/python2.7 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws'
which is broken due to pip, I think, I used the below command and it worked for me.
python3.6 ./awscli-bundle/install -b ~/bin/aws
I have been trying to get this running for the past couple of days now. I have a gstreamer command that requires x264enc. I am running a Mac I cannot seem to get x264 development libraries installed. I have installed gst-plugins-bad but that does not help. I read in forums I need to install x264 libraries first before installing gst-plugins-bad
I also tried VideoLAN's http://www.videolan.org/developers/x264.html That did not help either. I don't know what I'm missing. If it was Linux I could install the x264-devel packages. But I can't seem to find an alternative to that on Mac El Capitan.
The error I get is:
WARNING: erroneous pipeline: no element "x264enc"
Please help.
Try:
brew install gst-plugins-ugly --with-x264
x264enc is in gst-plugins-ugly, have you installed that? Homebrew is a popular package manager for macOS, installing gstreamer and x264 using that may be helpful also.
Build all module of GStreamer in follows sequence:
(1) Gstreamer-1.0
(2) gst-libav-1.8.3
(3) gst-plugins-base-1.8.3
(4) gst-plugins-good-1.8.3
(5) gst-plugins-bad-1.8.3
(6) gst-plugins-ugly-1.8.3
Set below path :
export PATH=$PATH:<install_dir_path>/bin
export LD_LIBRARY_PATH=<install_dir_path>/lib
export GST_PLUGIN_PATH=<install_dir_path>/lib/gstreamer-1.0
# building gst-plugins-ugly
export version=1.14.5
echo "building gst-plugins-ugly-$version"
cd $PROJECT_DIR/gst-plugins-ugly-$version
./autogen.sh
./configure --with-x264-libraries=/usr/lib/x86_64-linux-gnu/libx264.so
make -j8
sudo make install
Shot answer
For me, it started working after I installed ugly package. I use Ubuntu, my install command is:
sudo apt install -y gstreamer1.0-plugins-ugly
Similar case with solution
I had the similar issue with Ubuntu 22.04. But my first missing package was qtdemux. Originally I followed #brendan-shanks's answer (it worked) and on another machine tried #pooja's answer.
My command looks like this:
gst-launch-1.0 -v filesrc location="/home/ubuntu/countdown_10_min.mp4" ! qtdemux ! video/x-h264 ! rtph264pay ! udpsink host=127.0.0.1 port=8004
Following #pooja's solution I'v run several commands before it started working:
sudo apt install -y gstreamer1.0-plugins-base
sudo apt install -y gstreamer1.0-libav
sudo apt install -y gstreamer1.0-plugins-ugly
sudo apt install -y gstreamer1.0-plugins-bad
I don't know if qtdemux is in plugins-bad but only after that I was able to run my stream.
So, in similar case I would check packages #pooja have mentioned. For Ubuntu they are:
sudo apt install -y gstreamer1.0-tools
sudo apt install -y gstreamer1.0-libav
sudo apt install -y gstreamer1.0-plugins-base
sudo apt install -y gstreamer1.0-plugins-good
sudo apt install -y gstreamer1.0-plugins-bad
sudo apt install -y gstreamer1.0-plugins-ugly
I just downloaded homebrew, and want to download ipython notebook.
pip install ipython
-bash: pip: command not found
Thanks.
I ended up doing a brew sudo install pip, and now I'll do sudo pip install for every package.