mirror of
https://github.com/xxh/xxh
synced 2024-11-23 20:33:08 +00:00
commit
61d8528464
2 changed files with 7 additions and 1 deletions
|
@ -89,7 +89,12 @@ xxh arguments:
|
|||
|
||||
### Using pip and python
|
||||
|
||||
The xxh xonsh will use pip and python from `xonsh.AppImage` by default. You can install pip packages ordinally with `pip install`. They will appear in `$XXH_HOME/pip`.
|
||||
The xxh xonsh will use pip and python from `xonsh.AppImage` by default. You can update pip and install packages ordinally:
|
||||
```
|
||||
$ python3 -m pip install --upgrade pip
|
||||
$ python3 -m pip install --upgrade pandas
|
||||
```
|
||||
The packages will appear in `$XXH_HOME/pip` (`~/.xxh/pip` by default).
|
||||
|
||||
### How it works?
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ $PIP_TARGET = os.path.join($XXH_HOME, 'pip')
|
|||
$PYTHONPATH = $PIP_TARGET
|
||||
$PATH = [ os.path.join($PYTHONHOME, 'bin'), $XXH_HOME ] + $PATH
|
||||
sys.path.append($PIP_TARGET)
|
||||
aliases['xpip'] = ['python','-m','pip']
|
||||
aliases['xxh'] = os.path.join($XXH_HOME, 'xonsh') + ' ' + os.path.join($XXH_HOME, 'xxh')
|
||||
|
||||
for plugin_path in sorted(glob.glob(os.path.join($XXH_HOME, 'plugins/**'))):
|
||||
|
|
Loading…
Reference in a new issue