Estou tentando instalar algumas bibliotecas nas minhas máquinas Ubuntu. Tome esta biblioteca como exemplo - virtualenv
ubuntu@ip-172-31-44-172:~$ sudo apt install virtualenv
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ip-172-31-44-172:~$
Mas agora, quando tento usar o virtualenv, recebo -
ubuntu@ip-172-31-44-172:~$ virtualenv
The program 'virtualenv' is currently not installed. You can install it by typing:
sudo apt install virtualenv
Mesmo para a biblioteca 'pip3'
ubuntu@ip-172-31-44-172:~$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ip-172-31-44-172:~$
ubuntu@ip-172-31-44-172:~$ pip3
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
Qual é o problema aqui?
ubuntu @ ip-172-31-44-172: ~ $ echo $ PATH /home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr / sbin: / usr / bin: / sbin: / bin: / usr / jogos: / usr / local / jogos: / snap / bin: / usr / lib / jvm / java-8-oracle / bin: / usr / lib /jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/ubuntu/spark-2.2.1-bin-hadoop2.7//bin: /home/ubuntu/spark-2.2.1-bin-hadoop2.7//bin:/home/ubuntu/spark-2.2.1-bin-hadoop2.7//bin
—
gashu 13/08
Não consegui encontrar o pip3 dentro de / usr / bin /
—
gashu 13/08
dpkg -L virtualenv
irá mostrar todos os arquivos instalados pelo pacote.
Eu
—
consertei
pip3
está instalado em / usr / bin / no meu sistema, o seu está aí? e esse diretório existe no seu $ PATH?