m2skills

module install python

Aug 24th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. import pip
  2.  
  3. # method that install modules
  4. def install(package):
  5.     pip.main(['install', package])
  6.  
  7. # Example
  8. if __name__ == '__main__':
  9.     # put all the modules you want to install in the list below eg.['numpy', 'scipy']
  10.    
  11.     myModules = ['Cython','Jinja2','mysql-connector-python', 'pymysql','pickle','plotly', 'textblob', 'tweepy', 'twython', 'requests', 'xgboost']
  12.     for myMod in myModules:
  13.         install(myMod)
  14.        
  15. '''
  16. 'pandas', 'numpy', 'sklearn', 'scipy', 'matplotlib', 'seaborn', 'django', 'poloniex' ,'Cython',
  17. 'Jinja2', 'MarkupSafe', 'Quandl', 'cryptography', 'gensim', 'jupyter','mysql-connector-python', 'pymysql',
  18. 'nltk', 'pickle','plotly', 'scikit-learn', 'textblob', 'tweepy', 'twython', 'requests', 'xgboost'
  19. '''
Add Comment
Please, Sign In to add comment