![]() ![]() Now we need to create a directory that will contain our virtual environment. We can create the user and then switch to that user’s profile: # useradd cse First, let’s create a user that we’ll utilize to deploy the CSE server within the virtual environment. Now we’re ready to create our virtual environment within which to install CSE 2.0 server. Now that we’ve compiled our new version of Python, we can clean up the archive file and check our python3.7 version to ensure we compiled our source code correctly: # rm /usr/src/Python-3.7.3.tgzįinally, we need to use pip to install the virtualenv tool on our server: # pip3.7 install virtualenv We’ll use altinstall as not to replace the system’s default python binary located at /usr/bin/python: #. Next, we’ll pull down the Python 3.7.3 bits from the official Python site and unpack the archive: # cd /usr/srcĪt this point we need to compile the Python source code on our system. We’ll need some development packages and the GCC compiler installed on the server: # yum install -y zlib-devel gcc openssl-devel bzip2-devel libffi-devel The first thing we need to do is install (and compile) Python 3.7.3 on our CentOS server. This is useful in my situation as I had various versions of Python 3 installed on my CentOS server and I wanted to ensure Python 3.7.3 was being utilized exclusively for the CSE installation while not effecting other services running on the server utilizing Python3. ![]() ![]() virtualenv creates a folder which contains all the necessary executables to use the packages that a Python project would need. Virtualenv is a tool to create isolated Python environments. I wanted to document my steps in creating a virtual environment via virtualenv utilizing Python 3.7.3 and installing CSE Server 2.0 within the virtual environment. I had some trouble managed different versions of Python3 on the CentOS host I used to support the CSE server component. It’s important to note that CSE 2.0 has a dependency on Python 3.7.3 or later. The big news around the 2.0 release is the ability to provision Enterprise PKS clusters via CSE. As I’ve mentioned in recent posts, VMware’s Container Service Extension 2.0 (CSE) has recently been released.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |