We have been experimenting with different development environment in my startup.
Thursday, October 30, 2014
Thursday, October 2, 2014
python+virtualenv on Cygwin
I recently made Linux my platform for development, Firstly ue to the similarity with my production platform. Secondly because most open source programming tool performs optimally in Linux based system.
However, unless I replace my ageing system with a Mac, I will still need Windows OS for my small day to day works. So I have been doing most of my techical jobs on Ubuntu 12, installed ob Oracle VirtualBox.
However, I have been noticing some annoying delay, which prompted me to consider using Cygwin.
After pulling my hair a bit, I managed to figure out how to install python developement tools on Cygwin.
However, unless I replace my ageing system with a Mac, I will still need Windows OS for my small day to day works. So I have been doing most of my techical jobs on Ubuntu 12, installed ob Oracle VirtualBox.
However, I have been noticing some annoying delay, which prompted me to consider using Cygwin.
After pulling my hair a bit, I managed to figure out how to install python developement tools on Cygwin.
- Install Python.
- Download and unzip pip.
- Install by going into the expanded directory and running python setup.py in a command prompt.
- Set the %PYTHONHOME% system variable to the python base directory, (i.e. C:\Python27\) and adding the python base directory and script directory (i.e. C:\Python27\Scripts) to your %PATH% system variable.
- Install Cygwin WITHOUT Python. The previous step tells Cygwin to use the Windows binary.
- Install Cygwin-Virtualenvwrapper using pip install https://bitbucket.org/cliffxuan/virtualenvwrapper-for-cygwin-windows-python/get/tip.tar.gz
- Install virtualenvwrapper-win using pip install virtualenvwrapper-win
- Make a symlink between Cygwin's virtualenvhome directory and Windows's using ln -s /cygdrive/c/Users/<USER>/Envs/ ~/.virtualenvs
- Add the following to Cygwin's .bashrc file:
- Go to
C:\User\<username>\Env
(or other%VIRTUALENV_HOME%
location) and usevirtualenv
to start a new environment. Doing this allowsvirtualenvwrapper-win
'sworkon
command to work.
export VIRTUALENVWRAPPER_PYTHON="/cygdrive/c/Python27/python.exe" export VIRTUALENVWRAPPER_VIRTUALENV="/cygdrive/c/Python27/Scripts/virtualenv.exe" source virtualenvwrapper.sh
Labels:
flask,
Installation,
linux,
Programming,
python,
Windows
Wednesday, October 1, 2014
Happy 54th NIGERIA!
Its Nigeria 54th Independence, and am happy to join all other Nigeria to say HAPPY INDENPENCE DAY NIGERIA.
Our future is better than our past!!
And thanks to the people from @Google for the beautiful doodle
Our future is better than our past!!
And thanks to the people from @Google for the beautiful doodle
Subscribe to:
Comments (Atom)