我正在运行命令:
pip -v install pygments==2.0.2 --force-reinstall --ignore-installed --target .
作为我在Kivy iOS项目中构建过程的一部分.当我在终端中自己运行命令时,pygments已正确安装.当XCode运行它时,pygments包不会在pygments / formatters目录中安装任何文件.
我已经验证了同一个pip用于我的用户以及XCode运行pip时.
安装pygments时的输出:
(rdoherty.local) %% pip -v install pygments==2.0.2 --force-reinstall --ignore-installed --target . ~/Documents/projects/kivy-ios/racecapture-ios/YourApp (master)
Downloading/unpacking pygments==2.0.2
Could not fetch URL https://pypi.python.org/simple/pygments/2.0.2: 404 Client Error: Not Found
Will skip URL https://pypi.python.org/simple/pygments/2.0.2 when looking for download links for pygments==2.0.2
[snip]
Using version 2.0.2 (newest of versions: 2.0.2,2.0.2)
Downloading Pygments-2.0.2-py2-none-any.whl (672kB):
Downloading from URL https://pypi.python.org/packages/2.7/P/Pygments/Pygments-2.0.2-py2-none-any.whl#md5=98f29db02f4b22f58a2d3f60646e1e1f (from https://pypi.python.org/simple/pygments/)
...Downloading Pygments-2.0.2-py2-none-any.whl (672kB): 672kB downloaded
Installing collected packages: pygments
Successfully installed pygments
Xcode运行完全相同的命令时的输出:
Downloading/unpacking pygments==2.0.2
Could not fetch URL https://pypi.python.org/simple/pygments/2.0.2: 404 Client Error: Not Found
[snip]
Using version 2.0.2 (newest of versions: 2.0.2,2.0.2)
Downloading from URL https://pypi.python.org/packages/2.7/P/Pygments/Pygments-2.0.2-py2-none-any.whl#md5=98f29db02f4b22f58a2d3f60646e1e1f (from https://pypi.python.org/simple/pygments/)
Installing collected packages: pygments
Successfully installed pygments
我已下载pip下载的文件并验证它包含formatters目录中的文件.我已经验证了同一个pip程序正用于我自己和XCode:
(rdoherty.local) %% which pip ~/Documents/projects/kivy-ios/racecapture-ios/YourApp (master)
/usr/local/bin/pip
在Xcode构建阶段直接运行时,如何或为什么会错误地解压缩或安装pygments?
最佳答案
原文链接:https://www.f2er.com/python/438541.html