python-pip 要求,尝试安装 Python 2.7 包
我正在尝试在 Ubuntu 20.04.4 上安装 Cuckoo Sandbox 2.0.7
文档页面建议此包仅在 Python 2.7 中运行: https:// cuckoo.sh/docs/installation/host/requirements.html#installing-python-libraries-on-ubuntu-debian-based-distributions
我已经创建了一个虚拟环境并确保Python 2.7 与 anaconda 一起安装在其中。
文档安装指南将“python-pip”列为必需项,但是尝试安装会返回一条消息,告诉我它已过时,并安装“python3-pip”。
我知道 python-pip 实际上已经过时了,但我也不应该使用“python3-pip”,因为 Cuckoo 包仅适用于 Python 2.7。
是否只是 Cuckoo 网站上的过时信息,要求我安装过时的东西?
在我的 Venv 中,我可以使用“which”和“--version”pip,并被告知它位于 /myVenv/lib/python2.7/site-packages/pip (python 2.7)。所以如果我需要的话,“pip”已经准备好了。
我用谷歌搜索了“pip”和“python-pip”之间的区别,但没能发现太多。有人能告诉我有什么区别吗? 'pip' 会做与现在已过时的 'python-pip' 所做的相同的工作吗?我可以忽略安装 'python-pip' 的要求吗? 我认为我的 pip 位于 2.7 环境中,它将正确安装 cuckoo。
谢谢
I am trying to install Cuckoo Sandbox 2.0.7 on Ubuntu 20.04.4
The docs page advises this package only runs in Python 2.7:
https://cuckoo.sh/docs/installation/host/requirements.html#installing-python-libraries-on-ubuntu-debian-based-distributions
I have created a Virtual Environment and made sure Python 2.7 is installed inside it with anaconda.
The Docs Install guides list 'python-pip' as a requirement, however trying to install that returns a message telling me that it is obsolete, and to install 'python3-pip'.
I understand python-pip is in fact obsolete, but also that I should not use 'python3-pip', as the Cuckoo Package only works with Python 2.7.
Is it simply out of date information on the Cuckoo website, asking me to install something that is obsolete ?
Inside my Venv I can 'which' and '--version' pip, and am told it sits in /myVenv/lib/python2.7/site-packages/pip (python 2.7). So 'pip' is ready if I need it.
I have googled the difference between 'pip' and 'python-pip', but not been able to uncover much. Can someone tell me the difference ? and will 'pip' do the same job as what the now obsolete 'python-pip' did, and can I ignore the requirement to install 'python-pip'.
I presume as my pip sits inside the 2.7 environment it will install cuckoo correctly.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
python-pip
是您安装的软件包Debian/Ubuntu 带有apt
/apt-get
/aptitude
/dselect
。在当前的稳定版本(Debian 11 bullseye)中,该软件包已重命名为python- pip-whl
。pip
是 Python 发行版和 PyPI 中的包的名称。 Debian 的 python-pip-whl 是从相同的源构建的,也许版本略有不同。pip
也是可执行脚本的名称和可导入模块的名称。该脚本导入模块来完成这项工作。运行 python -m pip 会绕过脚本并直接运行模块。python-pip
is a package you install on Debian/Ubuntu withapt
/apt-get
/aptitude
/dselect
. In the current stable version (Debian 11 bullseye) the package was renamed topython-pip-whl
.pip
is the name of the package in Python distribution and at PyPI. Debian'spython-pip-whl
is built from the same sources, perhaps a slightly different version.pip
is also the name of the executable script and the name of the importable module. The script imports the module to do the job. Runningpython -m pip
bypasses the script and directly runs the module.因为@phd已经拼写出
python-pip
只是安装pip
的软件包的名称,用于预先安装或使用APT安装的Python
。您提到您有Anaconda,并且VENV中已经存在
pip
。这有同样的需求。现在,您在环境中为Python解释器安装了PIP。您应该能够激活Conda Env,然后运行As @phd has already spelled out
python-pip
was simply the name of the package that installedpip
for a python that comes pre-installed or was installed withapt
.You mention that you have anaconda and that
pip
already exists in the venv. This serves the same need. You now have a pip installed for the python interpreter in your environment. You should be able to activate your conda env and then run