vegasnoob.blogg.se

Python 3 install linux
Python 3 install linux











python 3 install linux
  1. #PYTHON 3 INSTALL LINUX UPDATE#
  2. #PYTHON 3 INSTALL LINUX ARCHIVE#
  3. #PYTHON 3 INSTALL LINUX DOWNLOAD#

#PYTHON 3 INSTALL LINUX UPDATE#

You should consider upgrading via the 'pip install -upgrade pip' ~]$įinally, I updated pip just to show that we can update something in this new install. WARNING: You are using pip version 19.2.3, however version 20.0.2 is available. Type "help", "copyright", "credits" or "license" for more ~]$ pip list

python 3 install linux

I logged out and in as bobby and tried python and pip to see that they were the correct version: ~]$ python bashrcĮxport ORACLE_HOME=/home/oracle/app/oracle/product/12.1.0/client_1Įxport LD_LIBRARY_PATH=/home/oracle/app/oracle/product/12.1.0/client_1/lib Then I added/home/bobby/python/bin to the front of the path to keep these new python and pip links ahead of the python links or binaries in the rest of the path. The install created python and pip as python3.8 and pip3.8 but I created links to them so that I could access them without 3.8 at the end of their names: Python-3.8.1]$ cd bin]$ ls -alĭrwxr-xr-x. So, now Python 3.8.1 is installed in /home/bobby/python but I want to put the bin directory in the path so I can run python or pip and by default have them be this version. Then I did the make and make altinstall from the same directory: If you want a release build with all stable optimizations active (PGO, etc), ~]$ mkdir pythonĪfter changing directory to where I untarred the source files I configured the Python make and install to use the directory I just created as a ~]$ cd Python-3.8.1]$ pwdĬonfig.status: creating Misc/python-embed.pcĬonfig.status: creating Misc/python-config.shĬonfig.status: creating Modules/ld_so_aix This directory tree will hold the binaries and any Python packages that I install. I created a directory called “python” under my home directory to use as the top-level directory for my Python install.

#PYTHON 3 INSTALL LINUX ARCHIVE#

Next I gunzipped and untarred this archive under my home directory: tar zxfv ~]$ % Total % Received % Xferd Average Speed Time Time Time Currentġ00 22.8M 100 22.8M 0 0 7830k 0 0:00:02 0:00:02 -:-:- 7828kįor some reason I had to do this twice. I had to use the -k option to get around certificate issues: ~]$ curl -k -O

#PYTHON 3 INSTALL LINUX DOWNLOAD#

The next thing I did was download the latest Python source, the 3.8.1 version. I did the rest of these steps as my low powered user “bobby”. I must have already installed these on this VM. As root I used yum to install the Linux packages I needed to install Python 3.8.1 from source: I did a yum update on my Oracle Enterprise Linux 7.7 install before I started to get everything on the latest version. I was willing to use root to install the needed Linux packages, but everything else was done with my low powered user. I wanted my own local copy of Python that I could install Python packages to without interfering with anything else. I wanted to install the latest Python on Linux in a low powered user’s home directory and not have the install interfere with the Python that comes with Linux.













Python 3 install linux