pip3 parou de funcionar depois de 'sudo easy_install-3.6 pip'

0

Eu executei o comando sudo easy_install-3.6 pip na minha máquina Linux sem saber as conseqüências e agora pip3 parou de funcionar como esperado. Por exemplo, estou tentando instalar o Rasa Core e o comando pip3 install rasa_core resulta em:

<< Long list of Requirement already satisfied... >>
launchpadlib 1.10.5 requires testresources, which is not installed.
spacy 2.0.10 has requirement html5lib==1.0b8, but you'll have html5lib 0.9999999 which is incompatible.
Installing collected packages: rasa-nlu, fbmessenger, html5lib
  Found existing installation: rasa-nlu 0.12.2
    Uninstalling rasa-nlu-0.12.2:
      Successfully uninstalled rasa-nlu-0.12.2
  Rolling back uninstall of rasa-nlu
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:
'/usr/local/lib/python3.6/dist-packages/rasa_nlu/training_data.py'
Consider using the '--user' option or check the permissions.

Ou algo como pip3 install requests resulta em:

Requirement already satisfied: requests in ./.local/lib/python3.6/site-packages (2.18.4)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.local/lib/python3.6/site-packages (from requests) (3.0.4)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests) (1.22)
Requirement already satisfied: idna<2.7,>=2.5 in ./.local/lib/python3.6/site-packages (from requests) (2.6)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests) (2018.4.16)
launchpadlib 1.10.5 requires testresources, which is not installed.
tensorflow-tensorboard 1.5.1 has requirement html5lib==0.9999999, but you'll have html5lib 1.0b8 which is incompatible.
tensorboard 1.7.0 has requirement html5lib==0.9999999, but you'll have html5lib 1.0b8 which is incompatible.
rasa-core 0.8.6 has requirement fbmessenger<5.0.0, but you'll have fbmessenger 5.0.0 which is incompatible.
rasa-core 0.8.6 has requirement rasa-nlu<0.12.0, but you'll have rasa-nlu 0.12.2 which is incompatible.
bleach 1.5.0 has requirement html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999, but you'll have html5lib 1.0b8 which is incompatible.

Na verdade, as últimas 6 linhas desse erro, algo sobre problemas de incompatibilidade, repita para cada comando pip3 install .

O que devo fazer para voltar aos dias mais simples?

Eu estava pesquisando sobre isso e há muitas informações sobre ambientes virtuais, mas nada disso faz sentido para um inexperiente. Parece haver uma infinidade de pacotes e comandos relacionados ao ambiente virtual, e coloco alguns comandos nele. Não faço ideia de como usar o ambiente, como e como sair. Todas as outras fontes parecem ter um conjunto de comandos ligeiramente diferente. Por favor, guie!

    
por Uzair A. 24.04.2018 / 12:44

0 respostas