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")
-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.
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.
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.
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.
--allow-insecure
takes a package as an argument. So you want:
$ pip install --upgrade --allow-insecure setuptools setuptools
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With