Let's say you have installed the python3.7 on debian stretch, use the command whereis python to locate the binary ( */bin/python). To set a default python version and easily switch between them, you need to update your update-alternatives with the multiple python version. You can download the latest python-x.y.z.tar.gz from here. Libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \Īlternative of libreadline-dev: sudo apt install libedit-devįedora/CentOS/RHEL(aws ec2): sudo yum install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel \Īlternative of openssl-devel: sudo yum install compat-openssl10-devel -allowerasing Ubuntu/Debian: sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ Some packages need to be installed to avoid some known problems, see: Common build problems(updated) make altinstall is therefore recommended instead of make install since it only installs exec_prefix/bin/pythonversion. Warning: make install can overwrite or masquerade the python binary. If you want pip to be included, you need to add -with-ensurepip=install to your configure call. It is recommended to use make altinstall according to the official website. configure -enable-optimizations -enable-shared You can install Python-3.6 on Debian 8 as follows: wget
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |