Score:0

Utilizing Python 2.7 features in VMware

cn flag

Good afternoon, I am working on a program install in VMware15 Ubuntu (20.04). The installation instructions are causing me issues as a entry-level user, so I wanted to see if anyone could make sense of the issues. For reference, the end goal of the install is to run a python file 'setup.py'

I believe that conflicting versions of python are causing interference when trying to run commands.

The instructions and errors() are as follows:

sudo apt-get update
sudo apt-get upgrade
sudo apt install python2.7
sudo apt install python-pip (E: no installation candidate) 
sudo snap install pycharm-community --classic
sudo pip install openmdao
sudo python -m pip install -U matplotlib
sudo apt-get install python-tk
sudo apt-get install libopenblas-dev        
sudo apt-get install libblas-dev liblapack-dev  
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install swig
sudo apt-get install python-mpi4py (E: Unable to locate package python-mpi4py)
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gfortran-8
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 1

After these instructions are preformed, the setup file should run. Attempting to run prompts (RuntimeError: Python version >= 3.7 required)

I am sorry for the novice question, I'm sure this is likely a simple fix, thank you in advance for any advice.

Additional note: the project has dependency on python2.7 features due to its nature, so operating on 3.7 is not a option.

us flag
Which version of Ubuntu are you running? Please [edit](https://askubuntu.com/posts/1377593/edit) your question with this information. Also, `python2.7` is EOL since 2020.
user535733 avatar
cn flag
`sudo apt install python-pip (E: no installation candidate) `: Easy fix, see https://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository
user535733 avatar
cn flag
`sudo apt-get install python-mpi4py (E: Unable to locate package python-mpi4py)`: The deb package was removed from Ubuntu after 18.04. Try using pip instead: `pip install mpi4pi`
cn flag
`python-mpi4py` does not exist except for 18.04 https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=python-mpi4py&searchon=names
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.