Simona Scala

Hello, I'm trying to install OpenPLC on the VMWare virtual machine with Ubuntu 20.04.1. Since from this version, Ubuntu doesn't support Python 2.7 anymore the installation gave me the following errorE:

Unable to locate package python-pip
./install.sh: line 8: pip: command not found

I also tried to install pip2 but the error is still this one: "Unable to locate package python-pip" even if I have the universe repository added. As I said before, I think that this happens because python-pip doesn't exist anymore in 20.04.
Does anyone have a solution? Should I install Ubuntu 18.04 on the VM?

I'm also attaching the complete output of the installation.

Reply 0 0
karolus
I had the same problem withLinux Mint 20. (Mint 20 is based on Ubuntu 20.04).

For me works:

Manual Installation of pip in Mint 20

use the Link https://bootstrap.pypa.io/get-pip.py in your Browser.
Store the file "get-pip.py" in the home directory /home/<username>/

If the browser does not offer the file for download, but "only" display the
cource code in the browser window, just open a text editor,
copies the complete source code from the browser window and pastes it into the editor.
Afterwards save the file under the name get-pip.py in any
directory, e.g. in the home directory /home/<username>/.

Then change to the home directory and call the following command to install "pip"

sudo python get-pip.py

Now pip installs itself into the directory /usr/local/bin and is ready for use.

then copy the PLC Editor installation files to a directory in /home/<user>.
e.g.: /home/karl/programs/openplc.

use the command: pip install --upgrade pip to upgrade pip.

Further I had to install then library future to solve problems with past.build.

command: pip install futur

Now I could install OpenOLCpip install --upgrade pipth any problems.

Here a link for the dependencys to OpenPLC for Linux Mint
https://openplc.discussion.community/post/errors-installing-on-linux-mint-19-3-cinnamon-10562615?pid=1311739971
Reply 1 0
safetyfactorman
what version of python did you install?  wouldn't a better way be to install pyenv first? 
Reply 0 0
Reply