| | 157 | |
| | 158 | |
| | 159 | To add additional packages into the virtual environment, try using pip. |
| | 160 | |
| | 161 | {{{ |
| | 162 | $ source ~/src/chimera-virtualenv/bin/activate |
| | 163 | (chimera-virtualenv)$ pip help |
| | 164 | Usage: pip COMMAND [OPTIONS] |
| | 165 | |
| | 166 | Options: |
| | 167 | --version show program's version number and exit |
| | 168 | -h, --help Show help |
| | 169 | -E DIR, --environment=DIR |
| | 170 | virtualenv environment to run pip in (either give the |
| | 171 | interpreter or the environment base directory) |
| | 172 | -s, --enable-site-packages |
| | 173 | Include site-packages in virtualenv if one is to be |
| | 174 | created. Ignored if --environment is not used or the |
| | 175 | virtualenv already exists. |
| | 176 | -v, --verbose Give more output |
| | 177 | -q, --quiet Give less output |
| | 178 | --log=FILENAME Log file where a complete (maximum verbosity) record |
| | 179 | will be kept |
| | 180 | --proxy=PROXY Specify a proxy in the form |
| | 181 | user:passwd@proxy.server:port. Note that the |
| | 182 | user:password@ is optional and required only if you |
| | 183 | are behind an authenticated proxy. If you provide |
| | 184 | user@proxy.server:port then you will be prompted for a |
| | 185 | password. |
| | 186 | --timeout=SECONDS, --default-timeout=SECONDS |
| | 187 | Set the socket timeout (default 15 seconds) |
| | 188 | |
| | 189 | Commands available: |
| | 190 | bundle: Create pybundles (archives containing multiple packages) |
| | 191 | freeze: Output all currently installed packages (exact versions) to stdout |
| | 192 | help: Show available commands |
| | 193 | install: Install packages |
| | 194 | search: Search PyPI |
| | 195 | uninstall: Uninstall packages |
| | 196 | unzip: Unzip individual packages |
| | 197 | zip: Zip individual packages |
| | 198 | }}} |
| | 199 | |
| | 200 | |
| | 201 | Now for something adventurous, installing the [http://packages.python.org/spyder/ spyder] python-IDE. |
| | 202 | |
| | 203 | {{{ |
| | 204 | $ source ~/src/chimera-virtualenv/bin/activate |
| | 205 | (chimera-virtualenv)$ cd ~/Downloads |
| | 206 | (chimera-virtualenv)$ wget http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.10.5.tar.gz |
| | 207 | (chimera-virtualenv)$ tar zxvf sip-4.10.5.tar.gz |
| | 208 | (chimera-virtualenv)$ cd sip-4.10.5 |
| | 209 | (chimera-virtualenv)$ python configure.py |
| | 210 | (chimera-virtualenv)$ make |
| | 211 | (chimera-virtualenv)$ sudo make install |
| | 212 | (chimera-virtualenv)$ cd .. |
| | 213 | (chimera-virtualenv)$ wget http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-4.7.4.tar.gz |
| | 214 | (chimera-virtualenv)$ tar zxvf PyQt-x11-gpl-4.7.4.tar.gz |
| | 215 | (chimera-virtualenv)$ cd PyQt-x11-gpl-4.7.4 |
| | 216 | (chimera-virtualenv)$ python configure.py --no-designer-plugin --qmake=/usr/bin/qmake-qt4 |
| | 217 | (chimera-virtualenv)$ make |
| | 218 | (chimera-virtualenv)$ sudo make install |
| | 219 | }}} |
| | 220 | |
| | 221 | That should satisfy the dependencies for [http://packages.python.org/spyder/ spyder]. So, try to install spyder, like so: |
| | 222 | {{{ |
| | 223 | $ source ~/src/chimera-virtualenv/bin/activate |
| | 224 | (chimera-virtualenv)$ pip install spyder |
| | 225 | }}} |
| | 226 | |
| | 227 | OK, if that works, then try to setup the environment and run spyder. |
| | 228 | |
| | 229 | {{{ |
| | 230 | $ source ~/src/chimera-virtualenv/bin/activate |
| | 231 | (chimera-virtualenv)$ export TCL_LIBRARY="$CHIMERA/lib/tcl8.6" |
| | 232 | (chimera-virtualenv)$ export TCLLIBPATH="{$CHIMERA/lib}" |
| | 233 | (chimera-virtualenv)$ unset TK_LIBRARY |
| | 234 | (chimera-virtualenv)$ unset TIX_LIBRARY |
| | 235 | (chimera-virtualenv)$ export LD_PRELOAD=libotf.so |
| | 236 | (chimera-virtualenv)$ export PATH=$PATH:$CHIMERA/bin |
| | 237 | (chimera-virtualenv)$ unset PYTHONHOME |
| | 238 | (chimera-virtualenv)$ unset PYTHONPATH |
| | 239 | (chimera-virtualenv)$ spyder |
| | 240 | }}} |