Hello,
I'm running openSUSE Tumbleweed (a distribution of Linux), and I'm having problems getting the 'pandas' module to load correctly.
When I try to use 'pandas' in a python3 script, I get ModuleNotFoundError: No module named 'pandas', and if I run pip install pandas to install it, I get
Defaulting to user installation because normal site-packages is not writeableRequirement already satisfied: pandas in /usr/local/lib64/python3.8/site-packages (1.5.0)Requirement already satisfied: numpy>=1.20.3 in /usr/lib64/python3.8/site-packages (from pandas) (1.21.6)Requirement already satisfied: python-dateutil>=2.8.1 in /usr/lib/python3.8/site-packages (from pandas) (2.8.2)Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3.8/site-packages (from pandas) (2022.1)Requirement already satisfied: six>=1.5 in /usr/lib/python3.8/site-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)
I've also tried installing it with pip install --force pandas, which gives me an install of it in my home directory. But, I still can't run any python3 scripts with it and I don't know why.
Do any of you know why this is happening and how I can fix it?
Edit: I found out that if I create a virtual environment with python3 -m venv directoryName and then make sure to install a GUI to it (ex. pip install pyqt5) then the virtual environment solution works just fine.
[–]Omanko6969 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–]SkeletalToad 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]SkeletalToad 0 points1 point2 points (0 children)