pyvec / naucse.python.cz

Website with learning materials / Stránka s učebními materiály
https://naucse.python.cz
Other
322 stars 118 forks source link

pipenv commands are broken on Windows: 'env' is not recognized #515

Closed hroncok closed 5 years ago

hroncok commented 5 years ago
> pipenv run naucse serve
Creating a virtualenv for this project…
Pipfile: C:\...\naucse.python.cz\Pipfile
Using C:/.../Python/Python36/python.exe (3.6.8) to create virtualenv…
[ ===] Creating virtual environment...Using base prefix 'C:\\...\\Python\\Python36'
New python executable in C:\...\.virtualenvs\naucse.python.cz-GmZHW9w3\Scripts\python.exe
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter C:/.../Python/Python36/python.exe

Successfully created virtual environment!
Virtualenv location: C:\...\.virtualenvs\naucse.python.cz-GmZHW9w3
'env' is not recognized as an internal or external command,
operable program or batch file.

The reason for this is that our commands are:

https://github.com/pyvec/naucse.python.cz/blob/67e523bb96e383394f07a45bf6613e6b33fa73a3/Pipfile#L6-L10

AFAIK env doesn't work as a command on Windows, but I seriously don't know.

hroncok commented 5 years ago

(This blocks @Zuzanita when trying to assemble the new Prague runs of PyLadies beginner courses.)

hroncok commented 5 years ago

Note that without env, it causes (on Linux):

Error: the command PYTHONPATH=. (from serve) could not be found within PATH.