[英]Checking to see if pip is installed?
Very much a newbie question but it's something that I've come across a few times now... I'm working through a python textbook and it tells me to check which version of pip is installed and has the following command:非常新手的问题,但这是我现在遇到过几次的问题......我正在阅读 python 教科书,它告诉我检查安装了哪个版本的 pip 并具有以下命令:
$ python3 -m pip --version
Presumably I should be running this in bash.大概我应该在 bash 中运行它。 If so, which folder should I be in?
如果是这样,我应该在哪个文件夹中? I have anaconda installed if that makes any difference.
如果这有什么不同,我已经安装了 anaconda。
(I can check in python which version I have by running pip --version I'm just wondering why the above isn't working) (我可以通过运行 pip --version 来检查 python 我有哪个版本我只是想知道为什么上面的方法不起作用)
Thanks in advance.提前致谢。
It depends where your Anaconda installation is.这取决于您的 Anaconda 安装位置。 You should normally be in your user folder.
您通常应该在您的用户文件夹中。 A typical output might go like this:
一个典型的 output 可能像这样 go :
python3 -m pip --version
# pip 19.3.1 from /home/john/anaconda3_501/lib/python3.6/site-packages/pip (python 3.6)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.