Skip to content

Instantly share code, notes, and snippets.

Forked from wpupru/Install Python 3.7.0 on CentOS 7
Last active December 16, 2019 12:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Install Python 3.7.0 on Centos 7
Install Python 3.7.0 on CentOS/RHEL 7
# To avoid encounter error: "ModuleNotFoundError: No module named '_ctypes'"
# we need install 'libffi-devel' together.
yum install gcc openssl-devel bzip2-devel libffi-devel
2.Download Python 3.7:
cd /usr/src
tar xzf Python-3.7.0.tgz
3.Install Python 3.7.0:
cd Python-3.7.0
./configure --enable-optimizations
make altinstall
(make altinstall is used to prevent replacing the default python binary file /usr/bin/python)
4.Remove downloaded source archive file from your system:
rm /usr/src/Python-3.7.0.tgz
5.Check Python Version
python3.7 -V
echo 'alias python3.7="python3"' >> ~/.bashrc
Команды Python:
django-admin startproject firstproject // создание нового проекта
django-admin -h // посмотреть все команды
#Создание нового приложения:
python startapp firstapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment