Skip to content

Commit f960f5f

Browse files
committed
Python note: Using Python Anaconda distribution as a virtual environment
1 parent e3ec4b9 commit f960f5f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Python.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,27 @@ print(a_module.__file__)
265265
python -m easy_install
266266
----
267267

268+
=== Using Python Anaconda distribution as a virtual environment
269+
270+
Source: http://stackoverflow.com/questions/16727171/installing-anaconda-into-a-virtual-environment
271+
272+
[source,sh,linenums]
273+
----
274+
# Download Python Anaconda from http://continuum.io/downloads
275+
cd /tmp/
276+
wget <anaconda-download-url>
277+
278+
# Install Anaconda into a place
279+
bash Anaconda-*.sh -b -p <anaconda-destination>
280+
----
281+
282+
Now whenever you want to use Python from Anaconda:
283+
284+
[source,sh,linenums]
285+
----
286+
source <anaconda-destination>/bin/activate <anaconda-destination>
287+
----
288+
268289
== FAQs
269290

270291
=== Why global interpreter lock (GIL) in CPython?

0 commit comments

Comments
 (0)