请教大佬
本帖最后由 焦健鬼 于 2020-5-21 16:48 编辑请教大佬,这是什么意思,下载flask(pip install Flask -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com)
Usage:
pip install <requirement specifier> ...
pip install -r <requirements file> ...
pip install [-e] <vcs project url> ...
pip install [-e] <local project path> ...
pip install <archive url/path> ...
no such option: --trusted-host Try this!pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com Flask 永恒的蓝色梦想 发表于 2020-5-21 16:56
Try this!
Usage:
pip install <requirement specifier> ...
pip install -r <requirements file> ...
pip install [-e] <vcs project url> ...
pip install [-e] <local project path> ...
pip install <archive url/path> ...
no such option: --trusted-host 焦健鬼 发表于 2020-5-21 17:00
Usage:
pip install ...
pip install -r...
那就删了PIP重装 永恒的蓝色梦想 发表于 2020-5-21 17:05
那就删了PIP重装
为啥pipinstall flask:Downloading/unpacking flask
Downloading/unpacking Jinja2>=2.10.1 (from flask)
Downloading/unpacking itsdangerous>=0.24 (from flask)
Downloading itsdangerous-1.1.0-py2.py3-none-any.whl
Downloading/unpacking Werkzeug>=0.15 (from flask)
Downloading/unpacking click>=5.1 (from flask)
Downloading/unpacking MarkupSafe>=0.23 (from Jinja2>=2.10.1->flask)
Downloading MarkupSafe-1.1.1.tar.gz
Running setup.py (path:c:\users\hp580-~1\appdata\local\temp\pip_build_hp580-3djj\MarkupSafe\setup.py) egg_info for package MarkupSafe
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
no previously-included directories found matching 'docs\_build'
warning: no previously-included files matching '*.py' found anywhere in distribution
Installing collected packages: flask, Jinja2, itsdangerous, Werkzeug, click, MarkupSafe
Compiling c:\users\hp580-~1\appdata\local\temp\pip_build_hp580-3djj\Jinja2\jinja2\asyncfilters.py ...
File "c:\users\hp580-~1\appdata\local\temp\pip_build_hp580-3djj\Jinja2\jinja2\asyncfilters.py", line 8
async def auto_to_seq(value):
^
SyntaxError: invalid syntax
Compiling c:\users\hp580-~1\appdata\local\temp\pip_build_hp580-3djj\Jinja2\jinja2\asyncsupport.py ...
File "c:\users\hp580-~1\appdata\local\temp\pip_build_hp580-3djj\Jinja2\jinja2\asyncsupport.py", line 18
async def concat_async(async_gen):
^
SyntaxError: invalid syntax
Running setup.py install for MarkupSafe
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
no previously-included directories found matching 'docs\_build'
warning: no previously-included files matching '*.py' found anywhere in distribution
building 'markupsafe._speedups' extension
==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
Retrying the build without the C extension now.
==========================================================================
no previously-included directories found matching 'docs\_build'
warning: no previously-included files matching '*.py' found anywhere in distribution
==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python build succeeded.
==========================================================================
Successfully installed flask Jinja2 itsdangerous Werkzeug click MarkupSafe
Cleaning up... 焦健鬼 发表于 2020-5-21 17:08
为啥pipinstall flask:
我发现你用的 Python2,所以导致了语法错误。 永恒的蓝色梦想 发表于 2020-5-21 18:51
我发现你用的 Python2,所以导致了语法错误。
对,我改回来了
页:
[1]