6

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)

quant
  • 3,328
  • 1
  • 21
  • 49
  • Have you tried `pip install pandas` ? It should use the wheel and circumvent interpreters. The error you get is related to compiling: "vcvarsall.bat" is part of the compiler in Visual Studio that is necessary to compile the module. Also...pip 1.5.6? The latest pip versions are at version 9 or 10, not 1 ... try upgrading pip first – Uvar Aug 07 '17 at 14:13
  • @Uvar I get the same error both from cmd and the`pycharm`. How can i upgrade the pip ? – quant Aug 07 '17 at 14:23
  • 2
    Try `python -m pip install --upgrade pip` – Uvar Aug 07 '17 at 14:26
  • that was it ! thanks – quant Aug 07 '17 at 14:56
  • Okio, moved to answers. :) – Uvar Aug 07 '17 at 15:58

6 Answers6

23

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

SabreWolfy
  • 5,096
  • 10
  • 50
  • 71
Uvar
  • 3,222
  • 9
  • 25
  • I am receiving this error: ERROR: Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. – Naga May 03 '22 at 05:17
10

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.

Zoe stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
Hamed Nikzad
  • 533
  • 7
  • 14
8

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.

5

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

0

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.

-1

Used "py -m pip install pandas"

Tom Dalton
  • 5,654
  • 19
  • 32
Ayaz M
  • 1
  • The question is regarding pandas installation so i suppose correct command would be python -m pip install pandas or pip install pandas, As per your command it installs numpy and for usage as you mentioned py may require an additional package, why not directly use python -m pip install numpy or pip install numpy – ganeshredcobra Mar 30 '22 at 09:48
  • @ganeshredcobra on windows systems, there is an optionally installable launcher `py.exe` that lets you select which python version to run. IIRC it is recommended to use it instead of calling `python3`, but I don't have a source for that. https://www.infoworld.com/article/3617292/how-to-use-pythons-py-launcher-for-windows.html – Dash Mar 31 '22 at 16:49
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/31410851) – Mad Physicist Apr 01 '22 at 07:49