0

I need to run code on a remote machine with no internet. My code includes pandas and numpy.

I downloaded the numpy+pandas libraries locally to the same folder and used it. But when I try to run the code (with pandas in a local folder) I get acannot import name 'ndarray' error.

Help

AnonymousAngelo
  • 996
  • 3
  • 15
  • 37
Guy Barash
  • 470
  • 5
  • 17

1 Answers1

1

you can download the whl file and and copy it to your remote machine without internet and install it using.

pip install some-package.whl

link to download whl files for windows

https://www.lfd.uci.edu/~gohlke/pythonlibs

from this question: How do I install a Python package with a .whl file?

basit awan
  • 11
  • 1
  • I passed the files themselve without any issue. but when i imported pandas (which is a local library there) i got "cannot import name 'ndarray'" – Guy Barash Dec 04 '19 at 15:29
  • form what i understand pandas in itself uses numpy and maybe it is unable to find numpy it that folder from where pandas is importing – basit awan Dec 05 '19 at 14:54