Dr_Lion Posted October 22, 2018 at 10:14 PM Report #612147 Posted October 22, 2018 at 10:14 PM (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 October 22, 2018 at 10:17 PM by Dr_Lion
M6 Posted October 23, 2018 at 09:01 AM Report #612151 Posted October 23, 2018 at 09:01 AM 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."
Dr_Lion Posted November 20, 2018 at 12:41 AM Author Report #612426 Posted November 20, 2018 at 12:41 AM 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now