Skip to content

Instantly share code, notes, and snippets.

@anis016
Created July 29, 2017 18:06
Show Gist options
  • Save anis016/9bac1dc1a307e90892d0906c23a9a419 to your computer and use it in GitHub Desktop.
Save anis016/9bac1dc1a307e90892d0906c23a9a419 to your computer and use it in GitHub Desktop.
1. login with sudo mode
$ sudo su
2. install virtualenv
$ pip install virtualenv
3. goto the folder where you want to create virtualenvironment
$ cd /home/work/python
4. create virtualenv using a given python version [if omitted, '-p /usr/bin/python3.6' then it is going to take the default one]
$ virtualenv -p /usr/bin/python3.6 scrape_env
5. using source to activate
$ source /home/work/python/scrape_env/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment