S
S
Sergey Nizhny Novgorod2016-02-09 18:35:51
Django
Sergey Nizhny Novgorod, 2016-02-09 18:35:51

How to run python 3.4 environment on CentOS7?

Guys, I would like to clarify one point with you.
Task: "Install a project on Python3.4 and Django 1.9.2 on a VPS (Cento OS 7)"
Now I have a problem with running an environment under Python3.4
What I do:
1) Create a user with sudo rights.
2) I write a set of commands:

sudo yum install epel-release
sudo yum install python-pip
sudo yum install wget
sudo pip install virtualenv virtualenvwrapper

echo "export WORKON_HOME=~/Env" >> ~/.bashrc #Все окружения буду сохранять в папку Env
echo "source /usr/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc

3) I put in the root folder of Python 3.4.3
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
tar -xvf Python-3.4.3.tar.xz
cd Python-3.4.3
./configure
make
sudo make install

4) And then, in theory, you need to start the virtual environment and specify the puton executable file for it. It should be something like this:
mkvirtualenv -p /usr/local/bin/python3.4 exampleexmp # -p чтобы поддерживалась 3 версия.

But something doesn't work.
Can you suggest what is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-02-09
@Terras

install from the repository
https://dl.fedoraproject.org/pub/epel/7/x86_64/rep...
then find out the real path to the binary
check if pip3 is included

T
TopTop, 2017-02-07
@TopTop

I work through pyenv
It is on Centose7 that I use pyenv. After installing this utility, there are no problems, any available version of Python is installed - if you need a completely new one, update the turnip and install it.
When installing pyenv, there may be expected problems due to lack of packages, but everything is there with the specified repository

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question