mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 04:47:00 +00:00
add other
set up virtualenv(sandbox) for python
This commit is contained in:
parent
518a3079bc
commit
011ffc4de6
15
README.md
15
README.md
@ -2380,4 +2380,19 @@ tree
|
||||
# └── 5
|
||||
#
|
||||
```
|
||||
##### set up virtualenv(sandbox) for python
|
||||
```bash
|
||||
#1. install virtualenv
|
||||
sudo apt-get install virtualenv
|
||||
#2. start a virtualenv
|
||||
virtualenv .venv
|
||||
#3. source virtual bin
|
||||
source .venv/bin/activate
|
||||
#4. you can check check if you are now inside a sandbox
|
||||
type pip
|
||||
#5. Now you can install your pip package, here requirements.txt is simply a txt file containing all the packages you want. (e.g tornado==4.5.3)
|
||||
pip install -r requirements.txt
|
||||
|
||||
```
|
||||
|
||||
=-=-=-=-=-A lot more coming!! =-=-=-=-=-=-=-=-=-=waitwait-=-=-=-=-=-=-=-=-=-
|
||||
|
Loading…
Reference in New Issue
Block a user