1. Deactivate the virtualenv if there is.
pyenv deactivate
2. Install the required libraries.
sudo apt-get install libpq-dev python-dev
3. Install PostgreSQL.
sudo apt-get install postgresql postgresql-contrib
1. Deactivate the virtualenv if there is.
pyenv deactivate
2. Install the required libraries.
sudo apt-get install libpq-dev python-dev
3. Install PostgreSQL.
sudo apt-get install postgresql postgresql-contrib
It took me one and an half day to get the Graphite working…
1. Make sure you have pyenv and pyenv-virtualenv installed.
2. Install the following packages.
sudo apt-get install python-dev pkg-config libcairo2-dev memcached
3. Install Python 2.7 with enable-shared.
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 2.7.8
Continue reading Install Graphite under pyenv virtualenv on Ubuntu
Assume you have Python 2.7.8 and virtualenv installed on an Ubuntu. Refer to the following references if they are not yet ready.
1. Create a new virtualenv.
pyenv virtualenv 2.7.8 django-poc
Continue reading DJango – Installation and create a simple Django project
I tried to install Python using pyenv but came across the following error:
vagrant@vagrant-ubuntu-trusty-64:~$ pyenv install 2.7.8 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
For those which are unset, set the environmental variables in .bashrc or .bash_profile.
export LANGUAGE=en_US.UTF-8 export LC_ALL=en_US.UTF-8
Re-login and try again.
Done =)
Reference: perl: warning: Please check that your locale settings ubuntu
Last week we talked about managing multiple Pythons using pyenv.
But still we are lacking something like the Gemfile in Ruby for managing the version of those Python packages in a Python project. And here comes the Python virtualenv.
We can create different virtualenv on the same machine and each of them has its own Python binary, the pip package and the all other standard Python libraries needed to run the Python. In other words, each virtualenv acts like the Gemfile in a particular Python project.
Continue reading Manage your Python projects with virtualenv
The pyenv is a fork from rbenv for managing Python versions on your machine.
Here is the steps to install pyenv thru homebrew. Alternatively you could install thru the pyenv-installer and replace step 1 – 4 below.
1. Update your homebrew.
brew update
2. Install pyenv thru homebrew.
brew install pyenv