Jump to content

Recommended Posts

Posted (edited)

Ora bem, estou com algumas dificuldades em instalar o selenium para o python.

https://askubuntu.com/questions/937770/how-to-install-and-set-up-selenium-webdriver-on-ubuntu-16-04

estava a seguir este link, mas esbarro logo no  segundo passo, já tinha o pip instalado.

Quote

/usr/bin/pip run on Mon Oct 22 23:07:30 2018
Downloading/unpacking selenium
  Getting page http://pypi.python.org/simple/selenium
  Could not fetch URL http://pypi.python.org/simple/selenium: HTTP Error 403: SSL is required
  Will skip URL http://pypi.python.org/simple/selenium when looking for download links for selenium
  Getting page http://pypi.python.org/simple/
  Could not fetch URL http://pypi.python.org/simple/: HTTP Error 403: SSL is required
  Will skip URL http://pypi.python.org/simple/ when looking for download links for selenium
  Cannot fetch index base URL http://pypi.python.org/simple/
  URLs to search for versions for selenium:
  * http://pypi.python.org/simple/selenium/
  Getting page http://pypi.python.org/simple/selenium/
  Could not fetch URL http://pypi.python.org/simple/selenium/: HTTP Error 403: SSL is required
  Will skip URL http://pypi.python.org/simple/selenium/ when looking for download links for selenium
  Could not find any downloads that satisfy the requirement selenium
No distributions at all found for selenium

Alguma ajuda?

Já agora, a versão que tenho instalada nesta máquina que estou a usar já é antiga... ubuntu 12.04.

Edited by Dr_Lion
Posted

A versão do SO não tem a ver com a versão do Python, a 12.04 suporta versões atuais do Python.

Podes fazer download manualmente e dar ordem ao pip para usar o ficheiro local em vez de ir buscar o pacote via http.

10 REM Generation 48K!
20 INPUT "URL:", A$
30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50
40 PRINT "404 Not Found"
50 PRINT "./M6 @ Portugal a Programar."

 

  • 4 weeks later...
Posted

Bem, tenho novidades, arranjei tempo e paciência formatei o portátil todo com dual boot w8 e ubuntu 18.

Python3  e pip3 instalado, selenium e gecko webdriver instalado.

Testei os 2 exemplos base e funcionou :)

Finalmente vou poder queimar mais uns neurónios nas horas vagas

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.