pip – Install python packages with requirements.txt
pip – Install python packages with requirements.txt
It works for me :
Create a virtual environment:
virtualenv test
Activate your virtual environment:
source test/bin/activate
Create a module test
and put requirements.txt
in that:
cd test && sudo pip install -r requirements.txt
Create a python script test.py
import pandas as pd
import flask as fs
df = pd.DataFrame([[1,2]], columns = [A, B])
print(df)
Run script:
(test) test user$ python test.py
Output:
A B
0 1 2