简体   繁体   中英

Can't get pip install to work behind a proxy

I'm trying to use pip install behind a proxy server at work to install beautifulsoup4 . But for some reason I get this output:

no such option: -\u2013

I'm using python 3.5 and the following command:

python -m pip install --proxy http://user:password@proxyserver:port beautifulsoup4

Any ideas on what I can do to resolve this?

\– is –, the en dash, which can easily be confused for a hyphen. It appears that (likely due to copy & paste issues) one of the hyphens in your command (I suspect the one just before "proxy") is actually an en dash and needs to be replaced with a real hyphen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM