簡體   English   中英

無法安裝Selenium Python

[英]Unable to install Selenium Python

我是編碼新手,我正在嘗試為Python安裝Selenium,並且試圖在Mac終端上使用此命令sudo pip install -U selenium,然后收到此消息

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

如果有人可以幫助我,我將不勝感激

謝謝。

我以前從未使用過硒,但我認為它可以在您的計算機上使用。 嘗試這個,

$sudo pip install selenium

要么

$sudo easy_install selenium

要么

$sudo brew install selenium

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM