Troubles installing Pandas on Mac Book Pro with M1 procesor - pandas

I switched from Windows NTB to MacBook Pro with M1. And I am not able to install Pandas, some issue with missing wheel for numpy. I am using Python 3.9. I went through various solutions presented here like this one below, but none work for me: https://stackoverflow.com/a/66048187/16324084
This one was one of the most explanatory, but I went through all steps, but when I run some code I will get this error message:
ModuleNotFoundError: No module named 'pandas'.
As I am new with Apple, no idea what is conda or roseta, so please can somebody write me what I should do to get Pandas installed and working? And please try to explain it as a small child, thanks.

I recommend you install Anaconda, a package manager. Instructions here. I have all of my packaged managed through this on my Big Sur m1 silicone MacBook pro and have not had issues since switching over from Intel.
Once you have installed anaconda, open terminal and run:
conda install pandas
More info on using anaconda here

Related

Jupyter Notebook Kernel dies when importing tenserflow

I am using Macbook Air with M1 chip. When trying to import tensorflow in Jupyter notebook, the kernel dies and displays a prompt that "Kernel has died and will restart in sometime". Could someone help me fix this?
Tensorflow version - 2.5.0
Python version - 3.8.8
Try running the notebook file within VS Code, there are extensions to help with that. Also check this article on how to install tf on M1 https://towardsdatascience.com/installing-tensorflow-on-the-m1-mac-410bb36b776
It seems this is a recurring issue with multiple people with the m1 macs. Since it is still fairly new, it is possible that Jupiter notebook still doesn't fully support it. Try using anaconda navigator with the windows emulator. Here is a link to a forum post with people having the same problem.
https://github.com/apple/tensorflow_macos/issues/45
Anaconda and upgrading to new M1 Mac

Kivy App crash in Android but not in PC. Buildozer 'KeyError: 'kivy.garden.matplotlib''

Versions:
Python: 3.8.5
OS: Manjaro 20.04
Buildozer: 1.2.0
Kivy: 1.11.1
Description:
I want to plot graphic of matplotlib with command "from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg" in .py file. This command works in PC but not in Android.
Spec file:
requirements: python3,kivy==2.0.0rc3,https://github.com/kivymd/KivyMD/archive/master.zip,sdl2_ttf==2.0.15, matplotlib
logcat | grep python
09-14 11:32:56.530 17786 18857 I python : KeyError: 'kivy.garden.matplotlib'
09-14 11:32:56.531 17786 18857 I python : Python for android ended.
As already stated by the error, you dont have the garden requirements. It works on your pc because you probably did:
garden install matplotlib
At some point in your pc hence you have the garden flower.But that is only half the problem. Thing is, kivy garden is now deprecated so you should stop using it, for now to use a garden flower in your app, you should do:
garden install --app some_flower
This is because garden flowers have been deprecated in favour of pip packages but not all of them have been moved to pypi so if your desired package hasnt been moved yet, use the command above otherwise, just install it normally with pip and ialso add it in your requirements.
The other major problem you have is that MATPLOTLIB WONT WORK IN ANDROID This has been a major issue and discussed for a while now but AFAIK no one is currently working on a fix,If you only need to plot a simple graph though,there is a garden package called graph, install it with:
python -m pip install https://github.com/kivy-garden/graph/archive/master.zip
Then use it in your app, this one is just python so it will work on android, tried and tezted by me. If you are wondering how to use it, there is an example on its README
You can then include that url in your requirements in buildozer(like you did with KivyMD
Quick Edit: Matplotlib now works great with kivy

haveing problem getting importing tensroflow in jupyter and sypder from anaconda installation

To start out I had a anaconda installation with python 3.5.2. After doing a pip tensorflow installation I got an error something like "nosetest...". I searched stackoverflow and got a suggestion to move to python 3.6.
So I uninstalled the whole of anaconda and python. Then did complete fresh install of anaconda with python 3.6.10. Did a pip install of tensforflow. launched spyder and jupyter and could not import tensorflow. However, when I issue commands from python command prompt things work fine.
So can't seem to get tensorflow to import in spypder or jupyter.
Lastly following another suggest I ran the c:/from/my/anaconda/Scripts/activate base. But that also didn't work in spyder. However in jupyter it seemed to import but then crashed on tf.version
with access violation.
Can you please help, I've tried many things and suggestions, can't seem to get tensorflow to work with python 3.5 or 3.6.
Thanks.
P.S. I remember using python3.5.2 sometime ago with the then tensorflow, I think version 1.1x and everything went smoothly, everything installed and imported worked beautifully.

Tensorflow installation on python 3.4, windows

I'm new to tensorflow and I'm having some problems with the installation. I searched through the official website, without any success. My computer runs on windows, with python version 3.4. None of the sources on the internet seemed to have any command lines for this specific case.
I would greatly appreciate your help:)
I'm pretty sure they added support for python 3.5 only,
But lately they added support for python 3.6 as well.
The only way i can see is that you would have to upgrade, I'm not such a pro with this but that's all i know because i had an import problem with tensorflow which i haven't been able to solve since
You can get the full instructions at Install TF on Windows
I hope you already installed python3 and pip3, if not follow
C:\> pip3 install --upgrade tensorflow

Installing Pandas using Pip on Windows 7

Having issues installing Pandas with Pip on Windows 7.
EDIT:
Seems like I did not have Microsoft Visual C++ installed.
The much easier approach, as someone kindly mentioned, was to install Anaconda and use it as the package manager as opposed to Python's native pip, although, for some packages (i.e PyBullet), you might have to default back to using Pip.
From your tags I guess you are using Windows as OS. Many people use Anaconda. It comes with many packages including pandas. The line is here It should be easy to install. Do you use any IDE?