Installing Git and Virtualenv on Linux or Mac
Join the DZone community and get the full member experience.
Join For FreeFor Debian/Ubuntu Linux:
sudo apt-get install git python-setuptools
For Redhat/Fedora Linux:
sudo yum install git python-setuptools
For Mac:
Install MacPorts and then:sudo port install git python-setuptools
Continuing on for all of the above
sudo easy_install pip sudo pip install virtualenv virtualenvwrapper
Now, you may want to set some defaults in your ~/.bashrc. My relevant entries look like this:
export WORKON_HOME=$HOME/Projects export VIRTUALENVWRAPPER_HOOK_DIR=$HOME/.virtualenvs export VIRTUALENVWRAPPER_LOG_DIR=$HOME/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh git config --global user.name "Terse Col" git config --global user.email myemail@gmail.com git config --global http.sslVerify false
Now away you go:
mkdir $HOME/.virtualenvs source $HOME/.bashrc mkvirtualenv mynewproject cdvirtualenv
Linux (operating system)
Git
Published at DZone with permission of Col Wilson, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Using Render Log Streams to Log to Papertrail
-
Cucumber Selenium Tutorial: A Comprehensive Guide With Examples and Best Practices
-
How To Use Pandas and Matplotlib To Perform EDA In Python
-
A React Frontend With Go/Gin/Gorm Backend in One Project
Comments