FFGo: Difference between revisions

Jump to navigation Jump to search
3 bytes added ,  25 February 2016
m
→‎General idea of the method: Fix inaccurate wording
(→‎Sample installation sessions: Improve formatting by splitting the big <pre> blocks)
m (→‎General idea of the method: Fix inaccurate wording)
Line 338: Line 338:
The general idea behind the [https://pip.pypa.io/ pip]-based method explained here is the following:
The general idea behind the [https://pip.pypa.io/ pip]-based method explained here is the following:
<ol style="list-style-type: decimal"><li>First, you '''choose a Python interpreter''', for instance <tt>/usr/bin/python3.4</tt>, '''and create a virtual environment from this Python interpreter'''.
<ol style="list-style-type: decimal"><li>First, you '''choose a Python interpreter''', for instance <tt>/usr/bin/python3.4</tt>, '''and create a virtual environment from this Python interpreter'''.
The interesting thing, with this kind of workflow, is that you never need to install packages as root, except for the base stones such as <tt>python3</tt> and <tt>python3-tk</tt><ref name="python-debian-package-names">These are package names used in Debian; other distributions may ship the same software components under slightly different names.</ref>, which are part of the Python Standard Library. These can be installed normally using your usual distribution tools: <tt>apt-get</tt>, <tt>aptitude</tt> or <tt>dpkg</tt> for Debian and derivatives; <tt>yum</tt> or <tt>rpm</tt> for Redhat and derivatives, <tt>pacman</tt> for Arch Linux, etc. Therefore, using this method, there is no risk of messing up your Linux system (contrary to people coming up with crappy installation scripts and telling you to run them as root and hope for the best). A virtual environment can be created as a simple user, like this:
The interesting thing, with this kind of workflow, is that you never need to install packages as root, except for the base stones such as <tt>python3</tt> and <tt>python3-tk</tt><ref name="python-debian-package-names">These are package names used in Debian; other distributions may ship the same software components under slightly different names.</ref>, which are part of a standard Python installation. These can be installed normally using your usual distribution tools: <tt>apt-get</tt>, <tt>aptitude</tt> or <tt>dpkg</tt> for Debian and derivatives; <tt>yum</tt> or <tt>rpm</tt> for Redhat and derivatives, <tt>pacman</tt> for Arch Linux, etc. Therefore, using this method, there is no risk of messing up your Linux system (contrary to people coming up with crappy installation scripts and telling you to run them as root and hope for the best). A virtual environment can be created as a simple user, like this:


<syntaxhighlight lang="shell" enclose="div">
<syntaxhighlight lang="shell" enclose="div">
417

edits

Navigation menu