简体   繁体   English

Python错误安装包

[英]Python error installing package

I have just installed python 3.5.1 and i read that pip should be installed by default. 我刚刚安装了python 3.5.1,我读到pip应该默认安装。

I am trying to install the package: numpy 1.10.2 by using the command: python -m pip install numpy 1.10.2 just as it says in the python documentation, but i get the error: ImportError: No module named site. 我正在尝试通过使用以下命令来安装软件包:numpy 1.10.2:python -m pip install numpy 1.10.2就像在python文档中所说的那样,但是我得到了错误:ImportError:没有名为站点的模块。

I am on windows and writing it in the windows cmd. 我在Windows上并将其写入Windows cmd。 Anyone have any solutions? 有人有解决方案吗?

Try the command 尝试命令

python -m pip install numpy (without the version number). python -m pip install numpy (无版本号)。

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

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