简体   繁体   中英

How to install pandas in pycharm

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)

尝试python -m pip install --upgrade pip然后是pip install pandas ,或者python -m pip install pandas

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.

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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM