Logo Hardware.com.br
Etherions Natsu
Etherions Na... Novo Membro Registrado
5 Mensagens 1 Curtida

[Resolvido] Erro ao tentar instalar a virtualenv, pip3 não funciona.

#1 Por Etherions Na... 10/04/2021 - 09:14
Eu estava tentado instalar a virtualenv no debian10 no konsole, mas apareceu o seguinte erro ao executar o comando:



COMANDO:

sudo pip3 install virtualenv



ERRO:



WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available
.")': /simple/virtualenv/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available
.")': /simple/virtualenv/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available
.")': /simple/virtualenv/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available
.")': /simple/virtualenv/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available
.")': /simple/virtualenv/
Could not fetch URL https://pypi.org/simple/virtualenv/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /sim
ple/virtualenv/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement virtualenv (from versions: none)
ERROR: No matching distribution found for virtualenv
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip
/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Porém, quando coloco apenas "pip" ao invés de "pip3", a virtualenv é instalada normalmente.Na verdade, todo comando que uso o pip3 dá erro (estou com o pip3 instalado), uso o python 3.9.2 e ,quando vou instalar alguma biblioteca na linguagem, sou obrigado a usar apenas o pip, o que faz o python reconhecer a biblioteca apenas quando mudo para o python2.

Por favor, me ajudem!

Anexos

TRONNER
TRONNER Cyber Highlander Registrado
32.2K Mensagens 7.3K Curtidas
#3 Por TRONNER
10/04/2021 - 15:58
Vocês tá instalando usando os repositórios padrão ?!
Desinstala com remove --purge tudo o que instalou do python, instala o openssl e depois tenta instalar novamente para ver o que acontece.
cool.png**Quando pensar ser um Golias, cuidado para não encontrar algum Davi**
veja.png Conheça os Poderosos e Gratuitos [ Iperius Backup ] e [ Iperius Remote ]
veja.png Todo dia um software novo e grátis [ clicando aqui ]
boa.gif Faça valer a sua voz com o Mudamos+ { https://www.mudamos.org }
© 1999-2024 Hardware.com.br. Todos os direitos reservados.
Imagem do Modal