doushabao0214 2018-08-12 02:02 采纳率: 0%
浏览 1984
已结题

windows下numpy版本无法更新

使用py2.7.8运行
import networkx as nx

import matplotlib.pyplot as plt

G =nx.random_graphs.barabasi_albert_graph(100,1)

nx.draw(G)报错AttributeError: 'module' object has no attribute 'full'
图片说明
查看了一下使用的numpy版本为1.8,用dir()函数查看发现没有full函数,查看其他电脑下numpy1.14.3有full函数且可以正常运行nx.draw(G)语句

想着能不能把现有的numpy版本降低,使用pip install -U numpy==1.14.3,但是一直报错cannot uninstall 'numpy'. it is a dictutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall

图片说明

求问如何解决一开始的问题,降低版本的思路是对的吗?
PS:有尝试着把对用的full函数黏贴到1.8版本中,但是还是报错TypeError: concat() got an unexpected keyword argument 'axis',或者是我黏贴的方式不对??

  • 写回答

2条回答 默认 最新

  • threenewbee 2018-08-12 02:15
    关注

    pip -uninstall numpy
    试试看这样来卸载

    你有装anaconda么?试试看conda代替pip

    评论

报告相同问题?

悬赏问题

  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试