windows - Python: fnmatchcase in virtualenv -
i'm trying install flask without success.
i have virtualenv running in bash terminal on windows 10.
$ pip install flask collecting flask using cached flask-0.12-py2.py3-none-any.whl collecting werkzeug>=0.7 (from flask) using cached werkzeug-0.12.1-py2.py3-none-any.whl collecting itsdangerous>=0.21 (from flask) using cached itsdangerous-0.24.tar.gz not import setuptools required install source distribution. traceback (most recent call last): file "c:\users\powlo\workspace\proj\.venv\lib\site-packages\pip\req\req_install.py", line 387, in setup_py import setuptools # noqa file "c:\users\powlo\workspace\proj\.venv\lib\site-packages\setuptools\__init__.py", line 8, in <module> fnmatch import fnmatchcase importerror: cannot import name 'fnmatchcase'
now, if run
$ winpty python python 3.5.1 (v3.5.1:37a07cee5969, dec 6 2015, 01:38:48) [msc v.1900 32 bit (in tel)] on win32 type "help", "copyright", "credits" or "license" more information. >>> import fnmatch >>> dir(fnmatch) ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']
nada.
now if same, no virtualenv (that is, using c:\python35...)
>>> import fnmatch >>> dir(fnmatch) ['__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', ' __name__', '__package__', '__spec__', '_compile_pattern', 'filter', 'fnmatch', ' fnmatchcase', 'functools', 'os', 'posixpath', 're', 'translate']
so naturally, can install flask without virtualenv. that's not want. ideas what's going on?
update: so, can see fnmatch.py in .venv/lib/ exists, empty file. if replace file c:\python35\lib good.
seems bug in virtualenv. version causing bug 15.0.0. updated 15.1.0 (via pip install) , fnmatch correctly copied when creating virtualenv.
Comments
Post a Comment