-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92c8245
commit e4f0dcb
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Programming/Python/Useful_codes/Python_enviroment/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# How to create a new python environment: | ||
|
||
These are the basic commands to add and install some packages: | ||
|
||
1. `python3 -m venv science` | ||
2. `. science/bin/activate` | ||
3. `pip install -r science_requirements.txt` | ||
|
||
** Note, **science** is just a name example, and **science_requirements** is just an example of commonly used python packages. | ||
|
||
I usually add an alias to `.bashrc` (or whatever you use) to activate the python env: | ||
|
||
``` | ||
# Python venv | ||
alias science='source /home/user/.virtualenvs/science/bin/activate' | ||
``` | ||
|
||
Reference: [Creating-virtual-environments](https://docs.python.org/3.3/library/venv.html#creating-virtual-environments) |
11 changes: 11 additions & 0 deletions
11
Programming/Python/Useful_codes/Python_enviroment/science_requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
h5py | ||
numpy | ||
matplotlib | ||
pandas | ||
pydicom | ||
scikit-image | ||
scipy | ||
spyder | ||
opencv-python | ||
tqdm | ||
tensorboard |