You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-20Lines changed: 2 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1015,21 +1015,7 @@ json??
1015
1015
1016
1016
### ModuleNotFoundError
1017
1017
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.
1033
1019
1034
1020
### Intersection of console tools or shell syntax with Python builtins
1035
1021
@@ -1090,7 +1076,7 @@ If you run a console tool and get a frozen terminal (Ctrl+c, Ctrl+d is not worki
### 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.
0 commit comments