WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Can't install Flask on Python 3

Open adampiskorski opened this issue 10 years ago • 4 comments

Flask for on Python 2 works fine, but when I try and install in a Python 3 virtualenv, I get the following error: lxss_python3_flask_error

To reproduce:

  • apt-get update
  • apt-get install python-virtualenv
  • virtualenv -p /usr/bin/python3.4 test
  • source test/bin/activate
  • pip install flask

To get out of virtualenv, type deactivate

adampiskorski avatar Apr 09 '16 22:04 adampiskorski

Issue persists with Build 14328 and clean reinstall of lxss. This issue also doesn't just apply to flask, but to hug and I suspect many other packages.

These are the things I did as well:

sudo pip install -U virtualenv
sudo apt-get install python3-pip

and update pip with: http://stackoverflow.com/questions/29712519/how-to-use-pip3-with-python-3-4

python3-dev is also installed already.

adampiskorski avatar Apr 24 '16 10:04 adampiskorski

Same issue when I try to install Django using virtualenv in python3 as well.

I suspected that it has to do with setuptools as well so I tried to directly install setuptools. https://pypi.python.org/pypi/setuptools

Unfortunately that doesn't fix this issue as well.

chushao avatar May 06 '16 09:05 chushao

Thanks for reporting the issue. I just went through the steps above on a recent internal build, and everything seemed to install fine (ended with "Successfully installed Jinja2-2.8 MarkupSafe-0.23 Werkzeug-0.11.10 click-6.6 flask-0.11.1 itsdangerous-0.24"). The fixes should be out in an insider build soon.

stehufntdev avatar Jun 07 '16 19:06 stehufntdev

Flask with python 3 and pip works on build 14366!

adampiskorski avatar Jun 22 '16 00:06 adampiskorski