I already have pip
installed but I tried this code to install pandas in my Python27/Lib:
import os
os.system('pip install pandas')
and the tried samples here in : Installing python module within code
and also tried the setup.py
here in :https://github.com/pandas-dev/pandas
but this doesn't download pandas and numpy in my Python27/Lib any answers?
UPDATE:
I tried this: and currently installed pandas in my Python
try: import pandas
except ImportError:
from pip._internal import main as pip
pip(['install', '--user', 'pandas'])
import pandas
but I have this error:
[33mYou are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.[0m
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\OJT\scanner\install.py", line 5, in <module>
import pandas
ImportError: No module named pandas
Is there a way to install the updated version of pip?