python中如何安装包

使用pip安装numpy包时遇到问题

今天在给安装python中的numpy包时遇到了一下问题:
在cmd中输入pip install numpy语句后,出现:
Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘c:\program files\python37\Lib\site-packages\numpy’
Consider using the --user option or check the permissions.

You are using pip version 19.0.3, however version 19.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.
如图:错误如图

解决办法

直接将pip install numpy
换成pip install --user numpy就可以了

在这里插入图片描述

如何在cmd中查看python安装了哪些包?

直接在cmd中输入pip list就行啦~

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值