简体   繁体   中英

Unable to install Selenium Python

I am new to coding I was trying to install Selenium for python and I was trying to use this command on my Mac Terminal sudo pip install -U selenium and then I got this message

The directory '/Users/ag/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/ag/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting selenium
  Could not fetch URL https://pypi.python.org/simple/selenium/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
  Could not find a version that satisfies the requirement selenium (from versions: )
No matching distribution found for selenium

I would greatly appreciate it if anyone can help me with this

Thank you.

I haven't used selenium before but I think it work on your computer. Try this,

$sudo pip install selenium

or

$sudo easy_install selenium

or

$sudo brew install selenium

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