Command not found


#1

Hello everyone,

I tried to install pio core I use pip install platformio it was installed without problem but when I tried to use pio or platformio command it said command not found.

Thank you for your answers.


#2

How did you install PIO Core? What is your OS?


#3

As I said before I just used pip install -U platformio and Iā€™m in ubuntu 17.1 freshly installed. My friend try the same thing with the same ubuntu and freshly installed too but for him it works I also tried the other method of installation with the script.


#4

Please provide an output from a system Terminal

echo $PATH
echo $PYTHONPATH
python --version
pip --version
pip list

#5

I facing the same problem on Debian 9 Stretch. Output of these commands for me is:

chufyrev@cbpp:~$ echo $PATH
/home/chufyrev/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/chufyrev/esp/xtensa-esp32-elf/bin
chufyrev@cbpp:~$ echo $PYTHONPATH

chufyrev@cbpp:~$ python --version
Python 2.7.13
chufyrev@cbpp:~$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
chufyrev@cbpp:~$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
apt-xapian-index (0.49)
arandr (0.1.9)
bottle (0.12.13)
certifi (2018.4.16)
chardet (3.0.4)
click (5.1)
colorama (0.3.9)
cryptography (1.7.1)
enum34 (1.1.6)
idna (2.6)
ipaddress (1.0.17)
keyring (10.1)
keyrings.alt (1.3)
lockfile (0.12.2)
numpy (1.12.1)
obMenu (1.0)
paramiko (2.0.0)
pip (9.0.1)
platformio (3.5.3)
psutil (5.0.1)
pyasn1 (0.1.9)
pycrypto (2.6.1)
pygobject (3.22.0)
pyserial (3.4)
python-apt (1.4.0b3)
python-debian (0.1.30)
pyxdg (0.25)
requests (2.18.4)
SecretStorage (2.3.1)
semantic-version (2.6.0)
setuptools (39.2.0)
six (1.10.0)
urllib3 (1.22)
wheel (0.29.0)

I can invoke PlatformIO via python -m command though:

chufyrev@cbpp:~$ python -m platformio --version
PlatformIO, version 3.5.3

#6

Exactly the same issue here, somehow the platformio binary is not installed, just the site packages in python.

This is an ubuntu based system.


#7

ajo@chromito:~$ find / -name platformio 2>/dev/null
/home/ajo/.local/lib/python2.7/site-packages/platformio
/home/ajo/.local/bin/platformio

interestingā€¦


#8

How did you install PlatformIO Core? Which method? http://docs.platformio.org/en/latest/installation.html#installation-methods


#9

hey @ivankravets thanks. I used the installer script


#10

I recommend to uninstall global PlatformIO Core from a system, see http://docs.platformio.org/en/latest/faq.html#multiple-pio-cores-in-a-system.

Then, please Install PlatformIO Core into Virtual Environment and Install Shell Commands.

Having this installation, you can keep PlatformIO Core in isolated environment.