First of all don't waste your time and just do the following:

1- install Anaconda

2- install Pycharm

 

Anaconda



 

For easy install and use of python and libraries install Anaconda.

I struggled to install Python for several days and many other packages and it wasn't successful because I hadn't installed the service pack 1 update for Windows 7.

To install Anaconda go to the following website:

https://www.continuum.io/downloads


Installing Packages:
after you downloaded and installed Anaconda, to update all the packages, open the windows command prompt and type:

conda update conda
conda update anaconda
conda update --all



After updating the size of anaconda folder was over 5.5 Gigabytes and I ran the following codes to clean it:

coda clean --tarballs
conda clean --packages



tweepy

I got error when first I used

conda install -c conda-forge tweepy 



Then I downloaded referring to this site

https://stackoverflow.com/questions/24848925/how-to-install-tweepy-with-anacondas-and-easy-install/41604473#41604473

And then I ran these codes:

git clone https://github.com/tweepy/tweepy.git
cd tweepy
python setup.py install


Then I used the pip install tweepy and I still had problem. Finally I used the first command again !!

 
R packages
Though not at useful as R itself and a little difficult to implement, but for special cases you can use them.

conda install rpy2
conda install scikit-learn


A package to work with MS Excel

conda install openpyxl


https://openpyxl.readthedocs.io/en/default/#module-openpyxl

pip install lxml
pip install html5lib
pip install BeautifulSoup4



install ipyparallel

 visit this link for tips, tricks, and shortcuts.

https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/