NB: I should probably have started with ”$ sudo apt-get update” before everything else...!
me@myPC:~$ python3 -m pip install --upgrade --user pip setuptools virtualenv ERROR: launchpadlib 1.10.13 requires testresources, which is not installed. WARNING: The scripts pip, pip3 and pip3.8 are installed in '/home/henrik/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts easy_install and easy_install-3.8 are installed in '/home/henrik/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script virtualenv is installed in '/home/henrik/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed appdirs-1.4.4 distlib-0.3.1 filelock-3.0.12 pip-20.2.3 setuptools-50.3.0 virtualenv-20.0.31 me@myPC:~$ which python3 /usr/bin/python3 me@myPC:~$ which pip me@myPC:~$ which pip3 /usr/bin/pip3
I have chosen to copy ’/usr/bin/pip3’ to ’/usr/bin/pip’:
me@myPC:/usr/bin$ sudo cp pip3 pip [sudo] password for henrik:
I installed python3-testresources in Synaptic (an Ubuntu package manager).
Then I repeated the following command, because the first time I got the message ”ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.”
But it doesn’t seem to have had any effect:
me@myPC:~$ python3 -m pip install --upgrade --user pip setuptools virtualenv Requirement already up-to-date: pip in ./.local/lib/python3.8/site-packages (20.2.3) Requirement already up-to-date: setuptools in ./.local/lib/python3.8/site-packages (50.3.0) Requirement already up-to-date: virtualenv in ./.local/lib/python3.8/site-packages (20.0.31) Requirement already satisfied, skipping upgrade: distlib<1,>=0.3.1 in ./.local/lib/python3.8/site-packages (from virtualenv) (0.3.1) Requirement already satisfied, skipping upgrade: filelock<4,>=3.0.0 in ./.local/lib/python3.8/site-packages (from virtualenv) (3.0.12) Requirement already satisfied, skipping upgrade: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv) (1.14.0) Requirement already satisfied, skipping upgrade: appdirs<2,>=1.4.3 in ./.local/lib/python3.8/site-packages (from virtualenv) (1.4.4)
Now I tried to combine the Kivy install instruction from https://kivy.org/doc/stable/installation/installation-linux.html and https://virtualenv.pypa.io/en/latest/user_guide.html :
First I changed to the Python/Kivy project directory where PyCharm has placed the ’venv’, and I activated the venv:
me@myPC:/usr/bin$ cd /mnt/data-part/mypython/GeoESP/
me@myPC:/mnt/data-part/mypython/GeoESP$ source venv/bin/activate
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ python3 -m pip install kivy==2.0.0rc3
Successfully built Kivy-Garden
Installing collected packages: pygments, Kivy-Garden, docutils, kivy
Successfully installed Kivy-Garden-0.1.4 docutils-0.16 kivy-2.0.0rc3 pygments-2.7.0
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ python3 -m pip install kivy_examples==2.0.0rc3
Installing collected packages: kivy-examples
Successfully installed kivy-examples-2.0.0rc3
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ python3 -m pip install ffpyplayer
Collecting ffpyplayer
Downloading ffpyplayer-4.3.1-cp38-cp38-manylinux2010_x86_64.whl (26.3 MB)
|████████████████████████████████| 26.3 MB 11.4 MB/s
Installing collected packages: ffpyplayer
Successfully installed ffpyplayer-4.3.1
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ KIVY_VIDEO=ffpyplayer
Then I could confirm that my Kivy app worked in PyCharm CE – using the virtualenv /mnt/data-part/mypython/GeoESP/venv/ !