Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install syntax for allowing insecure

Tags:

python

pip

I tried to run

$pip install --upgrade --allow-insecure setuptools

but it doesn't seem to work? is my syntax wrong?

this is on ubuntu 13.10 I need --allow-insecure as I haven't been able to the get the corporate proxy SSL certificates yet so I always get certificate verify failed errors.

I get this error:

You must give at least one requirement to install (see "pip help install")
like image 831
KillerSnail Avatar asked Jan 13 '14 03:01

KillerSnail


People also ask

What is '- U in pip install?

-U, --upgrade Upgrade all packages to the newest available version. So, if you already have a package installed, it will upgrade the package for you. Without the -U switch it'll tell you the package is already installed and exit.

Is pip install secure?

By default, pip does not perform any checks to protect against remote tampering and involves running arbitrary code from distributions. It is, however, possible to use pip in a manner that changes these behaviours, to provide a more secure installation mechanism.

Why am I getting invalid syntax for pip install?

The pip install invalid syntax error is raised when you try to install a Python package from the interpreter. To fix this error, exit your interpreter and run the pip install command from a command line shell.

How do I fix the syntax error in pip?

If you get a "SyntaxError: invalid syntax" when trying to install a module using pip , make sure to run the command from your shell, e.g. bash or PowerShell, and not by running a Python file that contains the pip install your_module command.


1 Answers

--allow-insecure takes a package as an argument. So you want:

$ pip install --upgrade --allow-insecure setuptools setuptools

like image 118
Daniel Haas Avatar answered Sep 22 '22 12:09

Daniel Haas