2019年9月19日 星期四

Tips for Python Environment

python help / version (from command line)

> python -h     # List the available parameters 
> python -V 	# show version`

To get a list of locally installed Python modules
>>> help('modules')
or from command line (if you have pip installed):
> pip list or
> python -c help('modules')

How to install a package?
conda example:
> conda install -c cogsci pygame

to install a conda or pip package if it is locally available:
> conda install <package-file-name>.tar.bz2
or
> pip install <package-file-name>.whl

to install a package if the package source code is at the local:
> python setup.py install

conda build

ref:
http://yenlung-blog.logdown.com/posts/257347-anaconda-in-the-virtual-environment-and-package-management

conda version:
> conda -V

update conda itself:
> conda update conda

整個更新Anaconda
> conda update anaconda

Written with StackEdit.

沒有留言:

張貼留言

Binary Data, String, and Integer Conversions in Python

In Python 3, struct  will interpret bytes as packed binary data: This module performs conversions between Python values and C structs rep...