Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
python [2017/10/13 12:06] bojar [Virtual environments] caveat about shebangs |
python [2018/06/12 12:33] popel [Virtual environments] |
||
---|---|---|---|
Line 15: | Line 15: | ||
python3 -m venv my-project-name | python3 -m venv my-project-name | ||
where '' | where '' | ||
- | **Caveat:** the path to the directory should be rather short, there is a limit on shebang paths so you can get strange errors like '' | + | **Caveat1:** the path to the directory should be rather short, there is a limit on shebang paths so you can get strange errors like '' |
+ | **Caveat2: | ||
You can use any Python version for the new environment, | You can use any Python version for the new environment, | ||
Line 34: | Line 35: | ||
| | ||
| | ||
+ | |||
+ | ==== IPython in virtual envs. ==== | ||
+ | When using virtuaenvs, ipython is (in some versions) confused uses incorrect python interpreter. The following alias fixes this issue: | ||
+ | < | ||
+ | alias ipython=" | ||
+ | </ | ||
===== Installing directly from Git ===== | ===== Installing directly from Git ===== |