Amazon EC2 virtualenv: pip says it installed numpy but python can't find it

前端 未结 1 1965
生来不讨喜
生来不讨喜 2021-01-15 19:50

I\'ve researched this question pretty thoroughly and can\'t seem to find an answer.

I\'m running a virtualenv and am trying to install numpy, on EC2 using Python 2.

相关标签:
1条回答
  • 2021-01-15 20:45

    Ok - answered my own question:

    pip seems to install numpy here:

    /home/ec2-user/dev/lib64/python2.7/
    

    but python isn't loading this as path as a library path.

    Solution:

    mv ~/dev/lib64/python2.7/dist-packages/numpy ~/dev/lib/python2.7/dist-packages/numpy
    

    Hopefully this helps someone out!

    0 讨论(0)
提交回复
热议问题