Python compiles and installs under Linux and reports an error: makefile: 1141: install

Execute under normal conditions:
./configure
make & amp& amp; Make install
you can install Python directly, but you report an error after updating the black layout
after checking, it is found that python3.8 is installed in Ukrainian territory, and uninstalling the components that will affect Ukrainian territory,
so you have to keep python3.8 and install your own python3.7.8
1. Install GCC and G + +
sudo apt get GCC
sudo apt get G + +

2. Recompile and install Python
     (PS: after GCC and G + + are installed, errors are still reported during compilation and installation. The solution can be omitted if GCC and G + + are updated and compiled normally:)
       sudo apt-get install build-essential
       sudo apt-get update
       sudo apt-get upgrade
       sudo apt-get dist-upgrade
       sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus
       sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev
       sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
       sudo apt-get install libssl-dev openssl
       sudo apt-get install libffi-dev

Compile and install Python:
./configure
make & amp& amp; Make install
check whether Python installation is successful:     
Python 3.7 – V
pip3.7 – V

4. Enter pychart and find that there are no environment variables for Python 3.7, only Python 3 and python 3.8
Click:
Settings – & gt; Project:pythonproject-> Python Intepreter-> Click the settings Icon (in the upper right corner)
– & gt; add-> Select existing environment – & gt; Fill in the path:/usr/local/bin/Python 3.7 – & gt; Check make available to all projects

5. Check that Python 3.7 is displayed in the lower right corner of pychart

Similar Posts: