鱼C论坛

 找回密码
 立即注册
查看: 1192|回复: 6

[已解决]请教大佬

[复制链接]
发表于 2020-5-21 16:42:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 焦健鬼 于 2020-5-21 16:48 编辑

请教大佬,这是什么意思,下载flask(pip install Flask -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com)
Usage:
  pip install [options] <requirement specifier> ...
  pip install [options] -r <requirements file> ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --trusted-host
最佳答案
2020-5-21 16:56:19
Try this!
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com Flask
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-5-21 16:56:19 | 显示全部楼层    本楼为最佳答案   
Try this!
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com Flask
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-21 17:00:15 | 显示全部楼层

Usage:
  pip install [options] <requirement specifier> ...
  pip install [options] -r <requirements file> ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --trusted-host
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-5-21 17:05:28 | 显示全部楼层
焦健鬼 发表于 2020-5-21 17:00
Usage:
  pip install [options]  ...
  pip install [options] -r  ...

那就删了PIP重装
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-21 17:08:31 | 显示全部楼层


为啥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[co]' 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[co]' 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[co]' 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...
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-5-21 18:51:55 | 显示全部楼层
焦健鬼 发表于 2020-5-21 17:08
为啥pipinstall flask:

我发现你用的 Python2,所以导致了语法错误。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-21 21:06:15 | 显示全部楼层
永恒的蓝色梦想 发表于 2020-5-21 18:51
我发现你用的 Python2,所以导致了语法错误。

对,我改回来了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-21 04:48

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表