Quick view of common Python commands
Table of Contents
1. conda Environmental Science
- establish :
conda create --name env python=3.8 - Activate :
activate env - Do not activate :
deactivate - Delete :
- Source change : stay
.condarcMiddle exchange
2. python Source change installation ( Be careful vpn The problem of going crazy …)
pip install pkg -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
3. jupyter notebook Add new conda Environmental Science
- Activate the environment :
activate vis conda install ipykernel- Environment write kernel:
python -m ipykernel install --user --name env --display-name “env name”
4. jupyter Installing a plug-in
pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install
Read more here: Source link
