我目前正在尝试安装一项要求,它告诉我在尝试对它们进行注释时找不到该要求。
我刚刚部署了Ubuntu 18.04服务器。但是每次我尝试运行pip install -r requirements.txt都会失败(以下提到的错误)
其他文件也有类似错误。通过StackoverFlow,我知道-apparmor和apturl-是Ubuntu软件包,如果您的代码不使用它们的代码,则可以放心地忽略它们。只需将它们从requirements.txt中删除
但是我与其他库也有相同的问题,例如,下面的库给出了以下相同的问题。
system-service==0.3
ubuntu-drivers-common==0.0.0
Ubuntu-Make==18.5
ufw==0.35
unattended-upgrades==0.1
unity-scope-calculator==0.1
unity-scope-chromiumbookmarks==0.1
unity-scope-devhelp==0.1
unity-scope-firefoxbookmarks==0.1
unity-scope-gdrive==0.7
unity-scope-manpages==0.1
unity-scope-openclipart==0.1
unity-scope-texdoc==0.1
unity-scope-tomboy==0.1
unity-scope-virtualbox==0.1
unity-scope-yelp==0.1
unity-scope-zotero==0.1
usb-creator==0.3.0
xdiagnose==3.8.4.1
xkit==0.0.0
这是我通过命令pip install -r requirements.txt安装上述软件包时遇到的错误
Collecting apparmor==2.12 (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement
apparmor==2.12 (from -r requirements.txt (line 1)) (from c
versions: )
No matching distribution found for apparmor==2.12 (from -r
requirements.txt (line 1))
请帮助我解决此问题。
编辑1:实际上,我正在尝试安装项目中使用的库,在该项目中,库名称及其在require.txt文件中指定的版本
我通过在另一个文件中运行following命令来安装它们,适用于许多库,但对于上述某些库却给出了以上错误
运行pip install -r requirements.txt