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:
- [Solved] pycurl.error: (35, ‘gnutls_handshake() failed: An unexpected TLS packet was received.’)
- centos ModuleNotFoundError: No module named ‘_sqlite3’
- Day 1 – meet Tornado
- [Solved] configure: error: C++ preprocessor “/lib/cpp” fails sanity check
- [Solved] Pychart Install a Third-part Library error: no such option: — bulid dir
- Make Command ERROR: “make:*** No targets specified and no makefile found.Stop.” [Three Method to Solve]
- [Solved] yarn Install Module Error:check python checking for Python executable “python2” in the PATH
- How to Solve Python flash_mysqldb Install error
- [Solved] python Install pip Error: zipimport.ZipImportError: can’t decompress data; zlib not available
- Openeuler: How to Install OpenSSL