0

I am running on ubuntu with several python versions installed. What am I missing?

user@serverA:/folderB$ python3.9 -m pip install numpy
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.13.3)
user@serverA:/folderB$ python3.9 logs_unifier.py 
Traceback (most recent call last):
  File "/folderB/logs_unifier.py", line 2, in <module>
    import pandas as pd
  File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 18, in <module>
    raise ImportError(
ImportError: Missing required dependencies ['numpy']
user@serverA:/folderB$ 
0

1 Answer 1

1

Try running python3.9 -m pip install -U --user numpy. -U means upgrade, and --user means it'll install in your user folder, not the system folder - it just gets rid of that message.

NumPy is up to version 1.22, so it's possible that pandas just doesn't work with the old version.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, wdyt about this ?` python3.9 -m pip -U --user numpy Usage: /usr/bin/python3.9 -m pip <command> [options] no such option: -U`
I made a stupid mistake - I forgot to include install after the word pip. Check my answer now, it's correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.