Error updating pip version on mac - shell

While updating pip on mac using the command
pip install --upgrade pip I am getting the following error
What should I do?

Looks like you need to run it with sudo.
sudo pip install --upgrade pip

Related

Jupyter error Consider using the `--user` option or check the permissions

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/defusedxml-0.6.0.dist-info'
Consider using the --user option or check the permissions.
pip install --user jupyter
the above command doesnt seem to work
I faced sam issue trying to upgrade pip.
I wasn't been able to do that with:
!python -m pip install --upgrade pip
But it run ok with:
!python -m pip install --upgrade --user pip
For installing Jupyter Notebook
try using:
pip install --user notebook
instead of:
pip install notebook
If you have root access you can try:
sudo pip install jupyter

How to uninstall Airflow?

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.

How do you upgrade version of pip on Repl.it?

I'm having issues upgrading pip using the pip3 install --upgrade pip3 command on Repl.it and getting this error:
Repl.it: Installing fresh packages
Usage: pip3 [options]
pip3: error: no such option: --upgrade
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Repl.it: package installation failed!
How can I upgrade pip on Repl.it?

How can I install tensorflow on mac using pip?

I have been getting the same error in the picture below for the following commands: pip3 install tensorflow or pip3 install protobuf. How can I solve this problem? Thanks.
Use a virtual environment. Works most efficiently.
pip install virtualenv
virtualenv -p python3 myTestEnv
source myTestEnv/bin/activate
pip3 install --upgrade pip3
pip3 install tensorflow

New to Homebrew, no pip install?

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.

Resources