mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Add anaconda commands to list environments, update packages, and cleanup old packages and tarballs.
This commit is contained in:
parent
2b043c6c50
commit
d3963b5481
|
@ -38,6 +38,9 @@
|
|||
"# See Anaconda installed packages\n",
|
||||
"!conda list\n",
|
||||
"\n",
|
||||
"# List environments\n",
|
||||
"!conda info -e\n",
|
||||
"\n",
|
||||
"# Create Python 3 environment\n",
|
||||
"!conda create -n py3k python=3 anaconda\n",
|
||||
"\n",
|
||||
|
@ -51,7 +54,23 @@
|
|||
"!conda update conda\n",
|
||||
"\n",
|
||||
"# Update a package with Anaconda\n",
|
||||
"!conda update ipython"
|
||||
"!conda update ipython\n",
|
||||
"\n",
|
||||
"# Update a package\n",
|
||||
"!conda update scipy\n",
|
||||
"\n",
|
||||
"# Update all packages\n",
|
||||
"!conda update all\n",
|
||||
"\n",
|
||||
"# Install specific version of a package\n",
|
||||
"!conda install scipy=0.12.0\n",
|
||||
"\n",
|
||||
"# Cleanup: Conda can accumulate a lot of disk space\n",
|
||||
"# because it doesn’t remove old unused packages\n",
|
||||
"!conda clean -p\n",
|
||||
"\n",
|
||||
"# Cleanup tarballs which are kept for caching purposes\n",
|
||||
"!conda clean -t"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user