简体   繁体   English

点安装不起作用?

[英]Pip install not working?

I've been using Ubuntu 17.04 but my pip install is not working. 我一直在使用Ubuntu 17.04,但是我的pip安装无法正常工作。 Pip3 works fine and I've been getting by using python3 but I want to use volatility plugins with vol.py and I need python2 for that. Pip3工作正常,我一直在使用python3,但我想在vol.py中使用易变性插件,为此我需要python2。

pip install just runs normally and installs everything fine but when I import it it says it's not installed. pip install只能正常运行,并且可以正常安装,但是在我导入它时表示未安装。 And yes I've tried using pip2, python -m pip, etc-- python -m pip just gives some error about no zlib when I've already installed it (zlib package thing). 是的,我尝试过使用pip2,python -m pip等-当我已经安装python -m pip时,它给出了一些关于没有zlib的错误(zlib软件包)。 Help? 救命?

You can specify which version of python you want to use 您可以指定要使用的python版本

Try this 尝试这个

    python3.6 -m pip install <package>

or 要么

    python3 -m pip install <package>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM