Ref. stackoverflow.com/questions/30539798/zsh-no-matches-found-requestssecurity
Question:
I am trying to run a python urllib2 script and getting this error:
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
After googling the error the solution, on stack overflow is to download requests' security package:
pip install requests[security]
But when I run that I get the error...
zsh: no matches found: requests[security]
Anyone know why zsh isn't picking up this library, it installs/upgrades requests just fine, I don't know why this isn't working
I am running this on a Debian Server...
Answer:
That means that if you need to pass literal square brackets as an argument to a command, you either need to escape them or quote the argument like this:
pip install 'requests[security]'
If you want to disable globbing for the pip command permanently, you can do so by adding this to your ~/.zshrc:
alias pip='noglob pip'
'Industry 4.0 > Python' 카테고리의 다른 글
Hands-On Examples for Working with DynamoDB, Boto3, and Python (0) | 2021.04.07 |
---|---|
The right and wrong way to set Python 3 as default on a Mac (0) | 2021.03.31 |
Getting started with AWS Kinesis using Python (0) | 2021.03.31 |
if…elif…else in Python (0) | 2021.03.31 |
Python에서 가장 큰 값 (0) | 2015.06.19 |
댓글