How to install pandas in pycharm

Question:

I am trying to install the pandas package in pycharm. I get the following error: unable to find vcvarsall.bat (i tried to install via the cmd but also via the project interpreter). I tried to install WSDK according to here but it did not work. I also tried the instructions in the video. Lastly i tried downloading the gcc binary according.

None of these worked. Any ideas ? I am using Windows 10, my python version is 3.4.1 and the pip version is 1.5.6 (for 64-bit)

Asked By: quant

||

Answers:

Try python -m pip install --upgrade pip followed by pip install pandas, or python -m pip install pandas.

Answered By: Uvar

Easiest way to do this is install anaconda on your machine.
Then fire up your pycharm >> go to new project >> then you are given with 2 option – one is to select folder and the second one is to select interpreter .

Select interpreter as the directory where you have installed anaconda then go to settings, there you find something available packages then search for the package you wish you install and press install package and you are good to go.

This is the list you will get , just click on the one you want to install and hit install package at the bottom of dialog box.

enter image description here

Answered By: Shubham Shakya

Open terminal from View -> Tool Windows -> Terminal
type command:

pip install pandas

Upon successful installation you should see output like so:

Successfully installed numpy-1.14.3 pandas-0.23.0 python-dateutil-2.7.3 pytz-2018.4 six-1.11.0

Then from File → Settings → Project: YourProjectName → Project Interpreter
check that under project interpreter pandas package installed.

Answered By: Hamed Nikzad

If you are on latest PyCharm 2018 then follow the below steps to install:

MAC:

Click on PyCharm shown on the Menu bar -> Click Preferences -> Click Project Interpreter under your Project -> Click ‘+‘ -> search for ‘pandas’/’numpy’ (you can specify specific version you want to install) and Click install underneath. Now you’re done.

Answered By: Skadoosh

Just write your program, use pandas library.
import pandas -> under pandas you will see red lines.
Hover your mouse there you will see install option just click it and wait for few minutes.

Answered By: yogesh15
import requests
from bs4 import BeautifulSoup
import pandas as pd


def get_netology_posts():
    res = requests.get('https://netology.ru/blog/')
    soup = BeautifulSoup(res.text, features="html.parser")
    posts = soup.find_all('div', class_='posts__item')

    netology_posts = pd.DataFrame()

    for post in posts:
        title = post.find('a', class_='posts__link').text
        link = post.find('a', class_='posts__link').get('href')
        date = post.find('div', class_='posts__date').text
        category = post.find('span').text
        netology_posts = netology_posts._append({'title': title, 'link': link, 'date': date, 'category': category}, ignore_index=True)

    return netology_posts

print(get_netology_posts())

почему не выводит ‘link’: link, ‘date’: date?

Answered By: Sergey

In pycharm community addition IDE

After opening the pycharm IDE, left navigation bottom there is command line option >_ click on it, it will open a terminal and run the following command pip install pandas

In pycharm Enterprise addition IDE

After opening the pycharm IDE, bottom(footer) navigation there is command line option >_ click on it, it will open a terminal and run the following command pip install pandas

Answered By: Tiru
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.