8

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")
2
  • Please include the actual error traceback as well. Commented Jan 13, 2014 at 3:13
  • Pip doesn't really have an option for this. Try installing it from a HTTP source: pip install --upgrade --index-url=http://pypi.python.org/simple/ setuptools
    – Blender
    Commented Jan 13, 2014 at 4:43

2 Answers 2

7

The current syntax is to use --trusted-host, to allow insecure downloads of all packages from a specific host or hosts.

pip install setuptools --trusted-host pypi.org --trusted-host files.pythonhosted.org

If you specify a custom PyPI repository either via a pip.conf or --index-url my.own.pypi.repo, you'll want to use your own repo instead of pypi.org.

6

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

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

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.