This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ways-to-run-python [2017/10/18 09:56] zoza [OSX] |
ways-to-run-python [2017/10/18 10:18] (current) zoza [OSX] |
||
---|---|---|---|
Line 11: | Line 11: | ||
<code>$ python3 </code> | <code>$ python3 </code> | ||
- | * **conda** is a package and environment management system for Python, R, Node.js, Java and other application stacks. It creates an environment (-n name) using a specified python version | + | * **conda** is a package and environment management system for Python, R, Node.js, Java and other application stacks. |
+ | |||
+ | Install conda for the system and version of choice. On OSX also run: | ||
+ | <code>export PATH="$HOME/anaconda3/bin:$PATH"</code> | ||
+ | |||
+ | Create an environment (-n name) using a specified python version | ||
<code>conda create -n myenv python=3.4</code> | <code>conda create -n myenv python=3.4</code> | ||
On managing (python) environments with conda: https://conda.io/docs/user-guide/tasks/manage-environments.html | On managing (python) environments with conda: https://conda.io/docs/user-guide/tasks/manage-environments.html | ||
Line 21: | Line 26: | ||
some instructions: http://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv | some instructions: http://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv | ||
- | ====== docker ====== | + | * **docker** |
<code> | <code> | ||
docker run -it -p 8888:8888 -p 6006:6006 -v sharedfolder:/root/sharedfolder floydhub/dl-docker:cpu bash | docker run -it -p 8888:8888 -p 6006:6006 -v sharedfolder:/root/sharedfolder floydhub/dl-docker:cpu bash |