我正在尝试在Visual Studio Code中设置机器学习的环境。
我面临的问题是:
$ pip install Flask==**0.9**
Collecting Flask==0.9
Using cached Flask-0.9.tar.gz (481 kB)
ERROR: Command errored out with exit status 1:
command: '<hidden-path>' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\davidson.lima\AppData\Local\Temp\pip-install-t35zbwu_\flask_f8c103077d3d4f02ba49d3dfb4ffd4c1\setup.py'"'"'; __file__='"'"'C:\Users\davidson.lima\AppData\Local\Temp\pip-install-t35zbwu_\flask_f8c103077d3d4f02ba49d3dfb4ffd4c1\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:Usersdavidson.limaAppDataLocalTemppip-pip-egg-info-6ph75l9f'
cwd: C:Usersdavidson.limaAppDataLocalTemppip-install-t35zbwu_flask_f8c103077d3d4f02ba49d3dfb4ffd4c1
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:Usersdavidson.limaAppDataLocalTemppip-install-t35zbwu_flask_f8c103077d3d4f02ba49d3dfb4ffd4c1setup.py", line 62
print "Audit requires PyFlakes installed in your system."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Audit requires PyFlakes installed in your system.")?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/49/0a/fe5021b35436202d3d4225a766f3bdc7fb51521ad89e73c5162db36cdbc7/Flask-0.9.tar.gz#sha256=2fd5d4ffe81f762dd2a3e58472d690a0dbba3766776506003aee3ed7aaa8afef (from https://pypi.org/simple/flask/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement Flask==0.9 (from versions: 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.5.2, 0.6, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, **0.9**, 0.10, 0.10.1, 0.11, 0.11.1, 0.12, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1)
ERROR: No matching distribution found for Flask==0.9
让我抓狂的是,我尝试使用的版本是0.9,它显然在列表中可用,如上面突出显示的。
你能帮我吗?我也问过类似的问题,但都失败了,所以没有重复。
为什么你特别安装$ pip install Flask==0.9. 它的版本可能不支持您的设备,只需简单地安装$pip install flask.