使用pip安装软件包时出错 [英] Error installing package with pip
问题描述
我正在尝试为python 3.4安装图表工具( matplotlib-v1.4.2 )在Windows 7中,到目前为止,我的所有尝试似乎都无法完成.
I'm trying to install a charting tool (matplotlib-v1.4.2) for python 3.4 in Windows 7, so far all my trails doesn't seem to do the job.
尝试:
- 我已经从 GitHub 下载了pip
-
python -m pip install matplotlib
在命令提示符[DOS]上-不用
- I've downloaded pip from GitHub
python -m pip install matplotlib
on Command Prompt[DOS] - No Use
在此处,有一个类似的问题,也尝试过这些建议,但出现以下错误
There's a similar question posted here, tried these suggestions too but I get the following error
'$' is not reconginized as an internal or external command.
'$' is not reconginized as an internal or external command.
我确定我会丢失一些东西,您在此方面的逐步指导将不胜感激.
I'm sure I'm missing something, your step by step guidance on this regard would be much appreciated.
推荐答案
$
是指shell提示符的开始,您实际上不应在命令中包括它:)
The $
refers to the beginning of a shell prompt, you shouldn't actually include it in your command :)
所以,而不是(从您发布的示例问题中)
So rather than (from the example question you posted)
$ pip install requests
您实际上是 type
pip install requests
无论如何,您都可以从此处下载matplotlib .exe文件以在Windows中使用.确保获得正确的位(32位和64位)和正确的Python版本.
In any case, you can download matplotlib .exe files from here for use in Windows. Make sure you get the correct bitness (32bit vs 64bit) and the correct Python version.
这篇关于使用pip安装软件包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!