![]() ![]() Use the virutal env.: source ~/virtualenv-1.9/virtalenv_name/bin/activateĭisconnect from the virtual env. ![]() Install the virtual environment for the local python: ~/.localpython/bin/virtualenv setup.py installĬreate a virtual environement using the local installation: virtualenv virtalenv_name -p /home//.localpython/bin/python2.7 Move inside the directory: cd virtualenv-1.9/ Uncompress the folder: tar -zxvf virtualenv-1.9.tar.gz Move inside the directory: cd Python-2.7.7Ĭreate the destination folder: mkdir ~/.localpython Uncompress the folder: tar -zxvf Python-2.7.7.tar.gz If for any reasons, you would like to have a local installation of Python in your home directory independently from the system, here are the steps to follow: Install Python ![]() We recommend to contact your server administrator to setup Python’s virtual environment on the server. Computing Installation of Python in your home directory (without sudo rights) To install the default Python2 version execute the following command: sudo apt install python2 -y To check if the Python2 version is installed successfully execute the command below: python2 -V You should get the following output: rootvps: python2 -V Python 2.7. ![]()
0 Comments
Leave a Reply. |