The Pi was originally installed with Python 2.7
To install python 3.4.2, I did the following:
sudo apt install python3; mkdir ~/bin; ln -s /usr/bin/python3
~/bin/python
which Python:
/home/pi/bin/python
To revert Python 2.7:
rm ~/bin/python
which Python
/usr/bin/python
If I am in Python 3.4.2:
pi@raspberrypi:~ $ python --version
Python 3.4.2
pi@raspberrypi:~ $ pip install progressbar2
Requirement already satisfied (use --upgrade to upgrade): progressbar2 in /usr/local/lib/python2.7/dist-packages/progressbar2-3.34.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): python-utils>=2.1.0 in /usr/local/lib/python2.7/dist-packages/python_utils-2.2.0-py2.7.egg (from progressbar2)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from python-utils>=2.1.0->progressbar2)
Cleaning up...
The problem is progressbar2
is installed on Python 2.7.
How do I install progressbar2
for Python 3.4.2?