New submission from Kevin <[email protected]>:
attempts from within cygwin:
1. The Posix way:
$ python -m venv taco
$ cd taco
$ source bin/activate
-bash: $'\r': command not found
-bash: Scripts/activate: line 4: syntax error near unexpected token `$'{\r''
'bash: Scripts/activate: line 4: `deactivate () {
2. The windows way:
$ python -m venv taco
$ cd taco
$ /full/path/to/venv/taco/scripts/activate.bat
$
3. the only solution from cygwin (still not 100% functional):
$ python -m venv taco
$ cd taco
$ cd Scripts
$ cmd
C:\taco\Scripts\> activate.bat
(taco) C:\taco\Scripts\>
HOWEVER. when running "pip freeze" in number 3 it returns the system packages
despite the "include-system-site-packages = False" in pyvenv.cfg
When #3 is run inside command prompt "pip freeze" returns nothing correctly.
Come on guys, please don't make me use command prompt or powershell.
----------
messages: 309215
nosy: Kevin
priority: normal
severity: normal
status: open
title: python -m venv activation issue when using cygwin on windows
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32451>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com