Skip to content

Commit 355c2a2

Browse files
authored
Update README.md
1 parent 02de515 commit 355c2a2

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

README.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,21 +1015,7 @@ json??
10151015
10161016
### ModuleNotFoundError
10171017
1018-
Sometimes when you're using PyPi, Conda, or virtual environments you can forget about the current version and location of Python and try to import packages in xonsh resulting in a `ModuleNotFoundError` error. Often this means you installed the package in another environment and didn't realise it. To avoid this there is the [`xpip`](https://xon.sh/aliases.html#xpip) alias that you can use to install PyPi packages in the Python environment that was used to run current xonsh session.
1019-
1020-
An example of how to get the path to Python:
1021-
```python
1022-
# Getting current active Python version
1023-
python --version # Python 3.8.5
1024-
which python # /opt/miniconda3/bin/python
1025-
pip install tqdm # Will be installed to /opt/miniconda3/lib
1026-
1027-
# Getting the Python version that used to run xonsh
1028-
import sys
1029-
sys.executable # '/usr/bin/python'
1030-
@(sys.executable) --version # Python 3.9.2
1031-
xpip install tqdm # Will be installed to /usr/lib
1032-
```
1018+
Sometimes when you're using PyPi, Conda, or virtual environments you can forget about the current version and location of Python and try to import packages in xonsh resulting in a `ModuleNotFoundError` error. Often this means you installed the package in another environment and didn't realise it. To avoid this read the section about xonsh installation above.
10331019
10341020
### Intersection of console tools or shell syntax with Python builtins
10351021
@@ -1090,7 +1076,7 @@ If you run a console tool and get a frozen terminal (Ctrl+c, Ctrl+d is not worki
10901076
./tool.sh
10911077
```
10921078
1093-
Finally, check [`$XONSH_CAPTURE_ALWAYS`](https://xon.sh/envvars.html#xonsh-capture-always).
1079+
4. Finally, check [`$XONSH_CAPTURE_ALWAYS`](https://xon.sh/envvars.html#xonsh-capture-always) value.
10941080
10951081
### Uncaptured output
10961082
@@ -1147,10 +1133,6 @@ for i in range(100):
11471133
e
11481134
```
11491135
1150-
### Unexpected issues around the [bashisms xontrib](https://xon.sh/xontribs.html#bashisms)
1151-
1152-
Sometimes [the bashisms xontrib](https://xon.sh/xontribs.html#bashisms) can be the cause of unexpected issues ([4250](https://github.com/xonsh/xonsh/issues/4250)). We recommend to avoiding the use of this xontrib. Instead of trying to bring bash into xonsh, we recommend diving into xonsh. In case you find yourself needing some bash syntax the best way is to implement this manually to have a clear understanding of exactly what you are doing.
1153-
11541136
# Tips and tricks
11551137
11561138
### Make your own installable xonsh RC file

0 commit comments

Comments
 (0)