Centos RPM with python virtual env
NickName:zoo zope Ask DateTime:2014-12-13T15:39:23

Centos RPM with python virtual env

I am trying to deploy my python virtualenv as centos rpm.

Following steps I have taken.

  1. Created virtual environment with required dependencies.

One of requirement is pyOpenSSL

  1. Built rpm package.

  2. Now when installed on fresh centos instance, I am getting error as 'No module named OpenSSL'.

Is there any different procedure for pyOpenSSL module or do we need to install openssl-devel and openssl explicitly on new machine.

Copyright Notice:Content Author:「zoo zope」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27456658/centos-rpm-with-python-virtual-env

More about “Centos RPM with python virtual env” related questions

Centos RPM with python virtual env

I am trying to deploy my python virtualenv as centos rpm. Following steps I have taken. Created virtual environment with required dependencies. One of requirement is pyOpenSSL Built rpm packag...

Show Detail

Create Python Script RPM for CentOS

I installed a minimal version of CentOS 6.3 on a virtual machine. I then used yum install python to install python-2.6.6-29.e16_3.3.x86_64 to /usr/bin/. I have a custom python script that I wrote ...

Show Detail

Python: RPM library

I've got this simple Python script, using rpm-python-4.11.3-25 module: #!/usr/bin/env python import rpm import sys print('Library version: {}'.format(rpm.__version__)) ts = rpm.TransactionSet() ...

Show Detail

Build RPM from python code which contains virtulal env

I have been asked to create RPM of git repo which has Python code and repo is installed using virtual env of python. Code for virtal env is inside that repo. My rpm is created successfully, but get...

Show Detail

I want to create rpm for Python-2.7.15 pkg on centos 7.5

While creating rpm for Python-2.7.15 on centos 7.5. I was creating rpm using below command. python setup.py bdist_rpm ..... ...... ..... Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UFJQ7P + uma...

Show Detail

Installing rpm and yum in anaconda python on centos 7

How do I install the redhat yum packages within an anaconda environment on CentOS? These packages exist in the standard Centos dist: $ lsb_release -d Description: CentOS Linux release 7.3.1611 ...

Show Detail

Python virtual environment is not activating in centOS

I am trying to install django in CentOS 7 cloud server. For that I have installed Virtual environment by using python -m venv env. And environment installed successfully, but it is not activating w...

Show Detail

Install Python 3.7,PIP,virtual env on Centos7

Currenlty my linux machine has Centos7 and by deafault i got Python 2.7.5 and i have installed python 3.6.8.Now i want to install Python 3.7,pip,virtual env on to my machine. We tried below link,but

Show Detail

Problem creating python virtual env on CentOS 7

I'm on CentOS 7 : $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) I am having trouble setting up a virtual env : $ python3 -m venv /home/noien/myVenv Error: Command '['/home/noien/...

Show Detail

CentOS RPM Packages

When I do rpm -qa | grep nano I can see that Nano Text Editor is installed onto my CentOS box. But when I do rpm -qpi nano-2.9.8-1.el8.x86_64.rpm in the below given directory it shows me Install D...

Show Detail