即使满足要求,我也无法为我的机器学习项目安装“ prefixscan”软件包。以下内容以CMD打印:
Collecting prefixspan
Using cached https://files.pythonhosted.org/packages/c5/b0/e66e9f6e07a0b37aa0f5703c46f54bafbdf65dfba63994247676b19076c4/prefixspan-0.5.2.tar.gz
Collecting docopt>=0.6.2 (from prefixspan)
Using cached https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Collecting extratools>=0.8.1 (from prefixspan)
Using cached https://files.pythonhosted.org/packages/60/76/e0184ff4581ee592a24e888cce3d7f08c09326fb074172e9085b0bca787d/extratools-0.8.1.tar.gz
Collecting RegexOrder>=0.2 (from extratools>=0.8.1->prefixspan)
Using cached https://files.pythonhosted.org/packages/31/2e/ba45fe736713c4673e59ddb9f27f0f72cf83ff0bf2108b8f4b8df93df3d2/RegexOrder-0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\AppData\Local\Temp\pip-install-vsf7xk06\RegexOrder\setup.py", line 17
download_url=f"{url}/tarball/{version}",
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-install-vsf7xk06\RegexOrder\
python版本是3.7.0> 3.6。 克服此安装问题方面的协助非常受重视。
谢谢!
答案 0 :(得分:0)
这是由与较旧版本的python(v3.5)相冲突的路径变量引起的。