python相关库的安装经验

1.安装方法:pip install (安装的东西)
如(安装numpy):pip install numpy
安装某个版本:pip install numpy1.12.1
2.卸载:pip uninstall (安装的东西)
如:pip uninstall numpy
3.安装速度太慢:国内镜像安装(清华镜像)
如(pandas安装):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
如(tensorflow+gpu+版本安装):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ tensorflow-gpu
1.13.1(gpu后面有两个等号)
4.错误
4.1(Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问):pip install–user 安装的东西
如:pip install–user tensorflow-gpu1.13.1
如:pip install–user -i https://pypi.tuna.tsinghua.edu.cn/simple/ tensorflow-gpu
1.13.1

4.2 spyder 中numpy 导入使用有问题:重新安装pandas成功的话,numpy就能成功使用(pandas安装出问题再解决相关的)
5.更新版本
更新到某个版本:
pip install --upgrade numpy==1.12.1(numpy 后面有两个等号)
更新到最新:
pip install --upgrade numpy

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值