I want to use pandas on jupyter-notebook. it is using python3. when I use
import pandas as pd
it says:
ModuleNotFoundError: No module named 'pandas'
but when I use:
pip install pandas
it returns:
Requirement already satisfied: pandas in /usr/local/lib/python2.7/dist-packages (0.24.2)
how can I import packages like this. it is set to use python3 but for pip command it see python2.7
Obviously, you are running several python versions in your PC. The environment value pip indicate to Python 2.7. However, you want use pandas module in your Python 3.
One solution:
Find the pip.py of your python 3 local address. Then add this address of pip.py to your PC environment as environment name with pip3.
The rest operation is the same:
in CMD:
$ pip3 install pandas
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With